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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca
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.
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: 17
- Joined: Wed Aug 19, 2009 7:53 pm
The class responsible for that validation check is lib/pkp/classes/form/validation/FormValidatorAlphaNum.inc.php. 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 (FormValidatorCustom.inc.php), 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: 4191
- Joined: Tue Feb 14, 2006 10:50 am
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/JournalSiteSettingsForm.inc.php--The 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!
- Posts: 952
- Joined: Mon May 05, 2008 10:29 am
- Location: Vancouver, BC
Return to OCS Conference Support and Discussion
Who is online
Users browsing this forum: No registered users and 0 guests