]> git.mjollnir.org Git - moodle.git/commitdiff
fixed auth_user_exists(), now works the same as the one in ldap plugin
authorskodak <skodak>
Sat, 22 Apr 2006 16:01:02 +0000 (16:01 +0000)
committerskodak <skodak>
Sat, 22 Apr 2006 16:01:02 +0000 (16:01 +0000)
auth/db/lib.php

index d7f301e0178f218cc722913847ad7c0fb6c0c384..c50b486575b1441a830f343e477d87d4359c26c5 100644 (file)
@@ -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;