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

svn at pcbsd.org svn at pcbsd.org
Wed Oct 26 09:32:41 PDT 2011


Author: kris
Date: 2011-10-26 09:32:40 -0700 (Wed, 26 Oct 2011)
New Revision: 13508

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp
Log:

Fix the username regexp to allow caps / numbers in different orders




Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp	2011-10-26 14:09:11 UTC (rev 13507)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-userwidget.cpp	2011-10-26 16:32:40 UTC (rev 13508)
@@ -32,7 +32,7 @@
   //Setup any regular expressions we will need
   passwordRegExp.setPattern("([a-z]*[A-Z]*[0-9]*[!\"\xef\xbf\xbd$%^&*()_+=\xef\xbf\xbd#'`@~:?<>|{}\\-.]*)+");
 
-  usernameRegExp.setPattern("[a-z]*[A-Z]*[0-9]*");
+  usernameRegExp.setPattern("[A-Za-z_0-9]*");
 
   // Disable add / apply buttons
   pushAddUser->setEnabled(false);



More information about the Commits mailing list