mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
authenticate_user_login() function now works even if $user->auth is not yet set, fixing bug 1747
This commit is contained in:
parent
aedfc5d2aa
commit
c117aa6c24
@ -779,7 +779,8 @@ function authenticate_user_login($username, $password) {
|
||||
$user = NULL;
|
||||
$auth = $CFG->auth;
|
||||
|
||||
if ($user = get_user_info_from_db("username", $username)) {
|
||||
$user = get_user_info_from_db("username", $username);
|
||||
if (!empty($user->auth)) {
|
||||
$auth = $user->auth;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user