Fix login with leading zero
This commit is contained in:
parent
07182c8e76
commit
20966b273e
1 changed files with 1 additions and 0 deletions
1
auth.php
1
auth.php
|
@ -142,6 +142,7 @@ class auth_plugin_crewauth extends auth_plugin_base {
|
|||
$user = $DB->get_record('user', array('username'=>(string)(int)$_POST["username"], 'mnethostid'=>$CFG->mnet_localhost_id));
|
||||
$user->auth = $this->authtype;
|
||||
$DB->update_record("user", $user, $bulk=false);
|
||||
$_POST["username"] = (string)(int)$_POST["username"];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue