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:
johnnyq
2026-11-28 23:31:17 -05:00
parent 4a2933cac9
commit d9c1c752bd
50 changed files with 4679 additions and 46 deletions

View File

@@ -350,6 +350,14 @@ function emailPreviewCatalog() {
'run' => function ($s) {
portalMailAccountChange($s['alex_email'], $s['alex_name'], 'mfa_off_by_us');
}],
'portal_passkey_added' => ['group' => 'Client portal', 'label' => 'Passkey added', 'to' => 'The contact', 'when' => 'They add a passkey in Your account',
'run' => function ($s) {
portalMailAccountChange($s['alex_email'], $s['alex_name'], 'passkey_added');
}],
'portal_passkey_removed' => ['group' => 'Client portal', 'label' => 'Passkey removed', 'to' => 'The contact', 'when' => 'They remove a passkey in Your account',
'run' => function ($s) {
portalMailAccountChange($s['alex_email'], $s['alex_name'], 'passkey_removed');
}],
// ---- Shared links
'share_link' => ['group' => 'Shared links', 'label' => 'Secure link', 'to' => 'Whoever it is for', 'when' => 'An agent shares something and asks to email the link',