Prefer webauthn tfa over google auth if enabled.

This commit is contained in:
Jan Böhmer 2022-10-05 22:32:01 +02:00
parent 485ca2c388
commit 8fe01cf240

View file

@ -853,6 +853,10 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
// return 'u2f_two_factor';
//}
if ($this->isWebAuthnAuthenticatorEnabled()) {
return 'webauthn_two_factor_provider';
}
//Otherwise use other methods
return null;
}