Changeset 68e9e4c


Ignore:
Timestamp:
07/17/13 08:13:00 (15 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
4e436f3
Parents:
2001c86
git-author:
Ken Moore <ken@…> (07/17/13 08:12:13)
git-committer:
Ken Moore <ken@…> (07/17/13 08:13:00)
Message:

Make sure that the firstboot GUI will not let you create a duplicate of a user that already exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-firstbootgui/firstboot.cpp

    r5bfd1ee r68e9e4c  
    66#include <pcbsd-netif.h> 
    77#include <pcbsd-utils.h> 
     8 
     9#include <sys/types.h> 
     10#include <pwd.h> 
    811 
    912#include "backend.h" 
     
    134137     return; 
    135138  if ( lineUsername->text().isEmpty() ) 
     139     return; 
     140  else if( getpwnam(lineUsername->text().toUtf8()) != NULL ) 
    136141     return; 
    137142  if ( linePW->text().isEmpty() ) 
Note: See TracChangeset for help on using the changeset viewer.