Fixes notices when username doesn't exist

This commit is contained in:
moodler
2005-01-28 16:59:43 +00:00
parent 3c14dccf97
commit 18f16d61ff
+4 -1
View File
@@ -1740,7 +1740,10 @@ function authenticate_user_login($username, $password) {
// First try to find the user in the database
$user = get_user_info_from_db('username', $username);
if (!$user = get_user_info_from_db('username', $username)) {
$user->id = 0; // Not a user
$user->auth = $CFG->auth;
}
// Sort out the authentication method we are using.