LDAP auth: bug fix

This commit is contained in:
David Anderson 2014-10-19 09:32:59 -07:00
parent 267ef49789
commit 625aef4718
1 changed files with 4 additions and 5 deletions

View File

@ -76,12 +76,11 @@ if (LDAP_HOST && $ldap_auth) {
// if the given password hash matches (auth+email), accept it
//
if ($user->passwd_hash == $passwd_hash || $auth_hash == $passwd_hash) {
echo "<account_out>\n";
echo "<authenticator>$user->authenticator</authenticator>\n";
echo "</account_out>\n";
} else {
if ($user->passwd_hash != $passwd_hash && $auth_hash != $passwd_hash) {
xml_error(ERR_BAD_PASSWD);
}
}
echo "<account_out>\n";
echo "<authenticator>$user->authenticator</authenticator>\n";
echo "</account_out>\n";
?>