Commit b8f23bf3 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3667 the reset password should use the fdPrivateMail from the personal plugin

parent 559fe83b
......@@ -505,6 +505,9 @@ class passwordRecovery {
} else {
$filter = "(&(objectClass=gosaMailAccount)(mail=".$this->email_address."))";
}
if (class_available('personalInfo') && ($this->config->get_cfg_value('privateEmailPasswordRecovery', 'FALSE') == 'TRUE')) {
$filter = '(|'.$filter.'(&(objectClass=fdPersonalInfo)(fdPrivateMail='.$this->email_address.')))';
}
$uids = get_list( $filter, "",
$this->config->current['BASE'], array("uid"),
GL_SUBSEARCH | GL_NO_ACL_CHECK);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment