mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Passkeys: agents and client portal contacts can add a passkey with their password and sign in with it instead of their email and password, counting as two-step sign-in; a passkey that supports PRF also opens an agent's credential vault, otherwise credentials stay locked until they type their password once; admins can turn passkeys off in Security settings, and resetting MFA, turning off a contact's two-step sign-in, archiving an agent and the incident password reset remove them; database 4.2.2 adds user_passkeys, users.user_passkey_handle and settings.config_login_passkeys, and lbuchs/WebAuthn 2.2.0 is bundled in libs/webauthn
This commit is contained in:
@@ -75,8 +75,9 @@ if (!hash_equals($session_stamp_current, (string) ($_SESSION['user_session_stamp
|
||||
// MFA required on this account and not set up yet: setting it up, or signing out, is all
|
||||
// this session may do - every other page, modal, AJAX call and POST goes back to the set
|
||||
// up page. Signing in only sends them there; this is what keeps them there, including when
|
||||
// an admin requires MFA, or resets it, on an agent who is already signed in.
|
||||
if ($session_user_config_force_mfa === 1 && trim((string) $session_token) === '' && !requestIsMfaSetup([
|
||||
// an admin requires MFA, or resets it, on an agent who is already signed in. A passkey sign-in is
|
||||
// two-step sign-in already (functions/passkey.php), so it is left be.
|
||||
if ($session_user_config_force_mfa === 1 && trim((string) $session_token) === '' && ($_SESSION['signed_in_with'] ?? '') !== 'passkey' && !requestIsMfaSetup([
|
||||
'agent/user/mfa_enforcement.php' => [[[], []]],
|
||||
'agent/user/post.php' => [[[], ['csrf_token', 'enable_mfa', 'verify_code']], [['logout'], []]],
|
||||
])) {
|
||||
|
||||
Reference in New Issue
Block a user