mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 09:56:01 +00:00
[Web] Fix mailbox authsource selection
This commit is contained in:
@@ -1024,8 +1024,8 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (in_array($_data['authsource'], array('mailcow', 'keycloak', 'generic-oidc', 'ldap')) &&
|
if ($_data['authsource'] == "mailcow" ||
|
||||||
$iam_settings['authsource'] == $_data['authsource']){
|
in_array($_data['authsource'], array('keycloak', 'generic-oidc', 'ldap')) && $iam_settings['authsource'] == $_data['authsource']){
|
||||||
$authsource = $_data['authsource'];
|
$authsource = $_data['authsource'];
|
||||||
}
|
}
|
||||||
if (empty($name)) {
|
if (empty($name)) {
|
||||||
@@ -2958,8 +2958,8 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|||||||
$tags = (is_array($_data['tags']) ? $_data['tags'] : array());
|
$tags = (is_array($_data['tags']) ? $_data['tags'] : array());
|
||||||
$attribute_hash = (!empty($_data['attribute_hash'])) ? $_data['attribute_hash'] : '';
|
$attribute_hash = (!empty($_data['attribute_hash'])) ? $_data['attribute_hash'] : '';
|
||||||
$authsource = $is_now['authsource'];
|
$authsource = $is_now['authsource'];
|
||||||
if (in_array($_data['authsource'], array('mailcow', 'keycloak', 'generic-oidc', 'ldap')) &&
|
if ($_data['authsource'] == "mailcow" ||
|
||||||
$iam_settings['authsource'] == $_data['authsource']){
|
in_array($_data['authsource'], array('keycloak', 'generic-oidc', 'ldap')) && $iam_settings['authsource'] == $_data['authsource']){
|
||||||
$authsource = $_data['authsource'];
|
$authsource = $_data['authsource'];
|
||||||
}
|
}
|
||||||
if (in_array($authsource, array('keycloak', 'generic-oidc', 'ldap'))){
|
if (in_array($authsource, array('keycloak', 'generic-oidc', 'ldap'))){
|
||||||
|
|||||||
Reference in New Issue
Block a user