Commit d9ad910b authored by Nigel McNie's avatar Nigel McNie

Fixed bug #912 - usernames are now case insensitive again

parent b10594cd
......@@ -376,7 +376,7 @@ class LiveUser extends User {
* @return bool
*/
public function login($username, $password, $institution) {
$users = get_records_select_array('usr', 'LOWER(username) = ? AND institution = ?', array($username, $institution), 'authinstance', '*');
$users = get_records_select_array('usr', 'LOWER(username) = ? AND institution = ?', array(strtolower($username), $institution), 'authinstance', '*');
if ($users == false) {
throw new AuthUnknownUserException("\"$username\" at \"$institution\" is not known");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment