1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-14 02:16:01 +00:00

[Web] fix idp login alerts and updates

This commit is contained in:
FreddleSpl0it
2024-12-04 14:49:31 +01:00
parent 896a9638d6
commit 1d6513ffba
2 changed files with 22 additions and 10 deletions

View File

@@ -480,7 +480,10 @@ function keycloak_mbox_login_rest($user, $pass, $extra = null){
'template' => $iam_settings['templates'][$mapper_key],
'hasAccess' => true
));
if (!$create_res) return false;
if (!$create_res){
clear_session();
return false;
}
return 'user';
}
@@ -576,7 +579,10 @@ function ldap_mbox_login($user, $pass, $extra = null){
'template' => $iam_settings['templates'][$mapper_key],
'hasAccess' => true
));
if (!$create_res) return false;
if (!$create_res){
clear_session();
return false;
}
return 'user';
}