mirror of
https://github.com/reactos/web.git
synced 2024-11-26 21:20:28 +00:00
[ROSLOGIN] Do not allow a banned user to re-use an email address
This commit is contained in:
parent
42f4d60105
commit
75d0386dcd
@ -235,7 +235,7 @@
|
||||
|
||||
// Search the LDAP directory for the given E-Mail address.
|
||||
$email_escaped = ldap_escape($email, null, LDAP_ESCAPE_FILTER);
|
||||
$filter = "(mail={$email_escaped})";
|
||||
$filter = "(|(mail={$email_escaped})(mail={$email_escaped}.disabled))";
|
||||
$sr = ldap_search($this->_ds, ROSLOGIN_LDAP_BASE_DN, $filter);
|
||||
return (ldap_count_entries($this->_ds, $sr) > 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user