mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
added custom func support to ldap auth as well
This commit is contained in:
@ -41,7 +41,13 @@ class ModelUserAuth extends Model {
|
||||
|
||||
if(ENABLE_LDAP_AUTH == 1) {
|
||||
$ok = $this->checkLoginAgainstLDAP($username, $password, $data);
|
||||
if($ok == 1) { return $ok; }
|
||||
if($ok == 1) {
|
||||
if(CUSTOM_EMAIL_QUERY_FUNCTION && function_exists(CUSTOM_EMAIL_QUERY_FUNCTION)) {
|
||||
call_user_func(CUSTOM_EMAIL_QUERY_FUNCTION, $username);
|
||||
}
|
||||
|
||||
return $ok;
|
||||
}
|
||||
}
|
||||
|
||||
if(ENABLE_IMAP_AUTH == 1) {
|
||||
|
Reference in New Issue
Block a user