Skip to content

Commit

Permalink
Custom email query function fix (jsuto#71)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <sj@acts.hu>
  • Loading branch information
jsuto authored Jun 11, 2024
1 parent cadc0ac commit d46efa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webui/model/user/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private function checkFallbackLogin($username = '', $password = '', $data = arra
$data['auditdomains'] = $this->model_user_user->get_users_all_domains($query->row['uid']);

if(CUSTOM_EMAIL_QUERY_FUNCTION && function_exists(CUSTOM_EMAIL_QUERY_FUNCTION)) {
call_user_func(CUSTOM_EMAIL_QUERY_FUNCTION, $username);
$data['emails'] = call_user_func(CUSTOM_EMAIL_QUERY_FUNCTION, $username);
}
else {
$data['emails'] = $this->model_user_user->get_users_all_email_addresses($query->row['uid']);
Expand Down Expand Up @@ -563,7 +563,7 @@ public function check_ntlm_auth() {
syslog(LOG_INFO, LDAP_HELPER_DN . " cannot bind to " . LDAP_HOST);
}

return 0;
return 0;
}


Expand Down

0 comments on commit d46efa7

Please sign in to comment.