Userid with "." period.

Are you a Director, Presenter, Reviewer or Conference Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 17
Joined: Wed Aug 19, 2009 7:53 pm

Userid with "." period.

Postby billysundar » Fri Jun 18, 2010 5:44 pm

A lot of my users would like to use "." in their userid; however, password validation fails when there is a "." in the userid.
Is there a quick code fix for this problem?


Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: Userid with "." period.

Postby jmacgreg » Mon Jun 21, 2010 9:51 am

Hi Billy,

The class responsible for that validation check is lib/pkp/classes/form/validation/ You can change the regex to allow "."s, but this will affect more than just the registration check, as this form validator is used elsewhere. You may want to create another validator class and call that from the registration page instead. There's also the custom validator class (, but I'm not entirely sure how that works myself. I'll ask a developer to chime in on this conversation as well. And note that there may be other side effects or security considerations if you allow other characters as part of the user name.


Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Userid with "." period.

Postby mcrider » Wed Jun 23, 2010 11:28 am

Hi Billy,

You can follow James' advice and allow periods in the regex for FormValidatorAlphaNum, but the only place i see this causing a problem is in classes/admin/form/ form validator is used here to make sure the journal path in the url only uses valid characters and (AFAIK) a period will not work here. So--Just make sure you don't put periods in the journal path for any new journals you create and you should be golden!


Return to “OCS Conference Support and Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests