diff --git a/api/src/Session.php b/api/src/Session.php index 064e2d40b8..5e30b6a1cb 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -795,7 +795,7 @@ class Session 'remember_me_token' => $token, ], [], true); - if (!count($factors) && (isset($errors['2fa_code']) || + if (!count($factors) && (count($errors) || $GLOBALS['egw_info']['server']['2fa_required'] === 'strict')) { if (!empty($code) && isset($errors['2fa_code']))