fixed auth_user_exists(), now works the same as the one in ldap plugin

This commit is contained in:
skodak 2006-04-22 16:01:02 +00:00
parent de177d8f2d
commit af38593211

View 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;