]> git.mjollnir.org Git - moodle.git/commitdiff
authenticate_user_login() function now works even if $user->auth is not yet set,...
authorgustav_delius <gustav_delius>
Fri, 20 Aug 2004 18:48:05 +0000 (18:48 +0000)
committergustav_delius <gustav_delius>
Fri, 20 Aug 2004 18:48:05 +0000 (18:48 +0000)
lib/moodlelib.php

index 75305f9efd9a66ca7393c990dcf8017a7b1faa48..285bad3a4b07eb2a002a5afe0888a2ad05057f8b 100644 (file)
@@ -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;
     }