From: gustav_delius Date: Fri, 20 Aug 2004 18:48:05 +0000 (+0000) Subject: authenticate_user_login() function now works even if $user->auth is not yet set,... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c117aa6c24d142bcdc2c6293e17d41d9a450ac25;p=moodle.git authenticate_user_login() function now works even if $user->auth is not yet set, fixing bug 1747 --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 75305f9efd..285bad3a4b 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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; }