[Trac-bugs] [PC-BSD Trac] #843: Unable to set password with pc-usermanager due to an invalid character

PC-BSD trac at pcbsd.org
Wed Nov 27 09:42:22 PST 2013


#843: Unable to set password with pc-usermanager due to an invalid character
---------------------------+-------------------------
 Reporter:  shirkdog       |      Owner:  tim
     Type:  System Defect  |     Status:  new
 Priority:  major          |  Milestone:
Component:  User Manager   |    Version:  9.2-RELEASE
 Keywords:                 |
---------------------------+-------------------------
 Test case:
 1)Open up usermanager and add a new user
 2)set a username/fullname
 3)enter any password with a comma ',' and it will be marked invalid

 The problem is in usermanagerback.cpp at line 41
 {{{
 #!div style="font-size: 80%"
   {{{#!c
 passwordRegExp.setPattern("([a-z]*[A-Z]*[0-9]*[!\"$%^&*()_+=#'`@~:?<>|{}\\-.]*)+");
   }}}
 }}}

 The regex does not have a comma, therefore validation fails.

 Fix:
 add a comma into passwordRegExp.setPattern.

--
Ticket URL: <http://trac.pcbsd.org/ticket/843>
PC-BSD <http://trac.pcbsd.org>
PC-BSD Project Management


More information about the Trac-bugs mailing list