mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Prefer webauthn tfa over google auth if enabled.
This commit is contained in:
parent
485ca2c388
commit
8fe01cf240
1 changed files with 4 additions and 0 deletions
|
@ -853,6 +853,10 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
|
||||||
// return 'u2f_two_factor';
|
// return 'u2f_two_factor';
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
if ($this->isWebAuthnAuthenticatorEnabled()) {
|
||||||
|
return 'webauthn_two_factor_provider';
|
||||||
|
}
|
||||||
|
|
||||||
//Otherwise use other methods
|
//Otherwise use other methods
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue