mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 22:45:56 +01:00
Prefer webauthn tfa over google auth if enabled.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user