From: skodak Date: Sat, 22 Apr 2006 16:01:02 +0000 (+0000) Subject: fixed auth_user_exists(), now works the same as the one in ldap plugin X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=af38593211c1efd0ab5e74b57f699f8880ec8422;p=moodle.git fixed auth_user_exists(), now works the same as the one in ldap plugin --- diff --git a/auth/db/lib.php b/auth/db/lib.php index d7f301e017..c50b486575 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -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;