Skip to content

Commit

Permalink
MDL-32572 always lookpup passwords only in records from current auth …
Browse files Browse the repository at this point in the history
…plugin

This bug should not be creating any problems thanks to our design of login process, but it should be fixed anyway.
  • Loading branch information
skodak committed Sep 18, 2012
1 parent 32efb09 commit 45a6d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/db/auth.php
Expand Up @@ -65,7 +65,7 @@ function user_login($username, $password) {
$authdb->Close(); $authdb->Close();
// user exists externally // user exists externally
// check username/password internally // check username/password internally
if ($user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id))) { if ($user = $DB->get_record('user', array('username'=>$username, 'mnethostid'=>$CFG->mnet_localhost_id, 'auth'=>$this->authtype))) {
return validate_internal_user_password($user, $password); return validate_internal_user_password($user, $password);
} }
} else { } else {
Expand Down

0 comments on commit 45a6d31

Please sign in to comment.