Merge commit 'refs/pull/4296/head' of github.com:mailcow/mailcow-dockerized into app-passwd-daveas

This commit is contained in:
andryyy
2021-10-25 07:31:25 +02:00
8 changed files with 24 additions and 7 deletions

View File

@@ -68,7 +68,8 @@ if (empty($_SERVER['PHP_AUTH_USER']) || empty($_SERVER['PHP_AUTH_PW'])) {
exit(0);
}
$login_role = check_login($login_user, $login_pass);
$allow_app_passwords = $ALLOW_APP_PASSWORDS_IN_EAS === true || $autodiscover_config['autodiscoverType'] == 'imap';
$login_role = check_login($login_user, $login_pass, $allow_app_passwords);
if ($login_role === "user") {
header("Content-Type: application/xml");