OJS development discussion, enhancement requests, third-party patches and plug-ins.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
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.
I found error
OJS 18.104.22.168 (June 25, 2010 - 08:52 AM) convert registry all user name to low upper case character.
(ex. Test1 to test1). And user cannot login with user name Test1.
- Posts: 32
- Joined: Thu Oct 16, 2008 3:27 am
I'm afraid I don't really understand what the problem is. How did you go about converting the usernames, and why?
- Posts: 4191
- Joined: Tue Feb 14, 2006 10:50 am
When manually registering a user account or when importing users through the XML import/export plugin, user names are converted to lower case. However, a user is not necessarily aware of this. So, if I am registering an account as "Testuser" nobody tells me that the next time I should login as "testuser". I've tried this, and logging in as "Testuser" with a capital T didn't work. That's because the PKPLoginHandler passes the UserVar "username" to Validation::login as entered. A possible workaround is to change line 120 in PKPLoginHandler to
- Code: Select all
$user = Validation::login(strtolower($request->getUserVar('username')), $request->getUserVar('password'), $reason, $request->getUserVar('remember') == null ? false : true);
- Posts: 111
- Joined: Wed Jul 25, 2012 2:56 pm
- Location: Munich, Germany
Return to OJS Development
Who is online
Users browsing this forum: No registered users and 1 guest