From af38593211c1efd0ab5e74b57f699f8880ec8422 Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 22 Apr 2006 16:01:02 +0000 Subject: [PATCH] fixed auth_user_exists(), now works the same as the one in ldap plugin --- auth/db/lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5