authenticate_user_login() function now works even if $user->auth is not yet set, fixing bug 1747

This commit is contained in:
gustav_delius 2004-08-20 18:48:05 +00:00
parent aedfc5d2aa
commit c117aa6c24

View 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;
}