mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
fixed auth_user_exists(), now works the same as the one in ldap plugin
This commit is contained in:
parent
de177d8f2d
commit
af38593211
@ -304,9 +304,11 @@ function auth_user_exists ($username) {
|
||||
if ( $rs->RecordCount() ) {
|
||||
// user exists exterally
|
||||
// check username/password internally
|
||||
if ($user = get_record('user', 'username', $username)) {
|
||||
// ?? there is no $password variable, so why??
|
||||
/*if ($user = get_record('user', 'username', $username)) {
|
||||
return ($user->password == md5($password));
|
||||
}
|
||||
}*/
|
||||
return $rs->RecordCount();
|
||||
} else {
|
||||
// user does not exist externally
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user