Supporting app-passwds in cal/carddav & ActiveSync

This commit is contained in:
Jürgen Kellerer
2021-10-24 13:12:34 +02:00
parent 32745efd13
commit 2ac5294d55
4 changed files with 20 additions and 3 deletions

View File

@@ -67,7 +67,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");