[PC-BSD Commits] r13492 - pcbsd/current/src-qt4/pc-sysinstaller

svn at pcbsd.org svn at pcbsd.org
Mon Oct 24 08:17:49 PDT 2011


Author: kenmoore
Date: 2011-10-24 08:17:49 -0700 (Mon, 24 Oct 2011)
New Revision: 13492

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp
Log:
Add a check to the pc-sysinstall userwidget to make sure usernames are under 512 characters long


Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp	2011-10-24 14:35:59 UTC (rev 13491)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp	2011-10-24 15:17:49 UTC (rev 13492)
@@ -100,6 +100,11 @@
      ok = FALSE;
    }
 
+   //Check username is less than 512 characters
+   if (lineUserName->text().length() > 512){
+     textAcctNotify->setText(tr(Username must contain less than 512 characters!));
+     ok = FALSE;
+   }
 
    if ( (lineUserPassword->text() != lineUserPassword2->text()) || lineUserPassword->text().isEmpty())
      ok = FALSE;



More information about the Commits mailing list