mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-23 02:04:46 +02:00
[Dovecot] init identity provider before user login
This commit is contained in:
parent
05e4bd7602
commit
b2db8e6b31
@ -57,7 +57,6 @@ if ($isSOGoRequest) {
|
||||
error_log('MAILCOWAUTH: SOGo SSO auth for user ' . $post['username']);
|
||||
$result = true;
|
||||
}
|
||||
|
||||
}
|
||||
if ($result === false){
|
||||
$result = apppass_login($post['username'], $post['password'], $protocol, array(
|
||||
@ -67,6 +66,10 @@ if ($result === false){
|
||||
if ($result) error_log('MAILCOWAUTH: App auth for user ' . $post['username']);
|
||||
}
|
||||
if ($result === false){
|
||||
// Init Identity Provider
|
||||
$iam_provider = identity_provider('init');
|
||||
$iam_settings = identity_provider('get');
|
||||
error_log('MAILCOWAUTH Try: User auth for user ' . $post['username']);
|
||||
$result = user_login($post['username'], $post['password'], $protocol, array('is_internal' => true));
|
||||
if ($result) error_log('MAILCOWAUTH: User auth for user ' . $post['username']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user