mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-15175: ensures cross-db: add a lowercase conversion for the username, merged from 19
This commit is contained in:
parent
b1339e9855
commit
e9366bf849
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user