MDL-15175: ensures cross-db: add a lowercase conversion for the username, merged from 19

This commit is contained in:
jerome 2008-08-14 09:55:56 +00:00
parent b1339e9855
commit e9366bf849

View File

@ -420,7 +420,8 @@ class auth_plugin_db extends auth_plugin_base {
print_error('auth_dbcantconnect','auth');
} else if ( !$rs->EOF ) {
while ($rec = $rs->FetchRow()) {
array_push($result, $rec->USERNAME);
$rec = (object)array_change_key_case((array)$rec , CASE_LOWER);
array_push($result, $rec->username);
}
}