1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 18:06:01 +00:00

init identity_provider only after all conditions are met

This commit is contained in:
FreddleSpl0it
2024-02-26 13:12:44 +01:00
parent 6928eb632e
commit d237157c0b
4 changed files with 16 additions and 6 deletions

View File

@@ -476,8 +476,8 @@ function keycloak_mbox_login_rest($user, $pass, $iam_settings, $extra = null){
}
function ldap_mbox_login($user, $pass, $iam_settings, $extra = null){
global $pdo;
global $iam_provider;
$iam_provider = identity_provider();
$is_internal = $extra['is_internal'];
$create = $extra['create'];