Skip to content

Commit

Permalink
authenticate_user_login() function now works even if $user->auth is n…
Browse files Browse the repository at this point in the history
…ot yet set, fixing bug 1747
  • Loading branch information
gustav_delius committed Aug 20, 2004
1 parent aedfc5d commit c117aa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/moodlelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c117aa6

Please sign in to comment.