fix aborted WebAuthn not treated as failure of 2nd factor, if registered

This commit is contained in:
Ralf Becker 2019-09-06 10:36:21 +02:00
parent f67efb50ae
commit 3967d2a3b6

View File

@ -795,7 +795,7 @@ class Session
'remember_me_token' => $token, 'remember_me_token' => $token,
], [], true); ], [], true);
if (!count($factors) && (isset($errors['2fa_code']) || if (!count($factors) && (count($errors) ||
$GLOBALS['egw_info']['server']['2fa_required'] === 'strict')) $GLOBALS['egw_info']['server']['2fa_required'] === 'strict'))
{ {
if (!empty($code) && isset($errors['2fa_code'])) if (!empty($code) && isset($errors['2fa_code']))