Use always only lowercase version of username.
When using authentication module (ldap, smb, pop etc...) and postgres-database multiple moodle users were created for usernames like 'Username' 'username' 'userName'
This commit is contained in:
+3
-1
@@ -483,7 +483,9 @@ function get_moodle_cookie() {
|
||||
function create_user_record($username, $password) {
|
||||
/// Creates a bare-bones user record
|
||||
global $REMOTE_ADDR, $CFG;
|
||||
|
||||
|
||||
$username = strtolower($username);
|
||||
|
||||
if (function_exists(auth_get_userinfo)) {
|
||||
if ($newinfo = auth_get_userinfo($username)) {
|
||||
foreach ($newinfo as $key => $value){
|
||||
|
||||
Reference in New Issue
Block a user