mirror of
https://github.com/itflow-org/itflow
synced 2026-12-05 18:49:01 +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:
@@ -27,6 +27,38 @@ if (isset($_POST['invoice_bulk_set'])) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
* Adding a passkey in Your account > Security (js/passkey.js, functions/passkey.php): their password
|
||||
* checked first, so a typo doesn't leave a passkey on their device that doesn't work here - then
|
||||
* what to ask the browser for. The passkey itself comes back with the form, to add_your_passkey.
|
||||
*/
|
||||
if (isset($_POST['passkey_create_options'])) {
|
||||
validateCSRFToken();
|
||||
header('Content-Type: application/json');
|
||||
if (!passkeysOn()) {
|
||||
http_response_code(403);
|
||||
exit(json_encode(['error' => 'Passkeys are turned off.']));
|
||||
}
|
||||
[$password_ok, $password_message, $me] = passkeyPasswordCheck($session_user_id, (string) ($_POST['current_password'] ?? ''), 'add a passkey');
|
||||
if (!$password_ok) {
|
||||
exit(json_encode(['error' => $password_message]));
|
||||
}
|
||||
echo json_encode(passkeyCreateOptions($session_user_id, $me['user_email'], $me['user_name']));
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
* Unlocking the credentials with your password - after a passkey sign-in that couldn't open the
|
||||
* vault (vaultUnlock()). The vault session's cookie comes back with the answer.
|
||||
*/
|
||||
if (isset($_POST['vault_unlock'])) {
|
||||
validateCSRFToken();
|
||||
header('Content-Type: application/json');
|
||||
[$unlocked, $unlock_message] = vaultUnlock($session_user_id, (string) ($_POST['password'] ?? ''));
|
||||
echo json_encode($unlocked ? ['unlocked' => true] : ['error' => $unlock_message]);
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
* The host in a New / Edit Certificate form, checked when asked: connect,
|
||||
* take the certificate it serves and say what it is - OK, for another name,
|
||||
@@ -1930,6 +1962,11 @@ if (isset($_GET['get_totp_token_via_id'])) {
|
||||
|
||||
enforceUserPermission('module_credential');
|
||||
|
||||
// Signed in with a passkey that couldn't open the vault - their password unlocks it (js/credentials.js)
|
||||
if (vaultLocked()) {
|
||||
exit(json_encode(['locked' => true]));
|
||||
}
|
||||
|
||||
$credential_id = intval($_GET['credential_id']);
|
||||
|
||||
$sql = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT credential_name, credential_otp_secret, credential_client_id FROM credentials WHERE credential_id = $credential_id"));
|
||||
@@ -3002,6 +3039,11 @@ if (isset($_GET['get_credential_via_id'])) {
|
||||
|
||||
enforceUserPermission('module_credential');
|
||||
|
||||
// Signed in with a passkey that couldn't open the vault - their password unlocks it (js/credentials.js)
|
||||
if (vaultLocked()) {
|
||||
exit(json_encode(['locked' => true]));
|
||||
}
|
||||
|
||||
$credential_id = intval($_GET['credential_id']);
|
||||
|
||||
$sql = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT credential_name, credential_username, credential_password, credential_client_id FROM credentials WHERE credential_id = $credential_id"));
|
||||
|
||||
@@ -68,6 +68,8 @@ $contact_mobile_copy = escapeHtml(formatPhoneNumber($row['contact_mobile'], $row
|
||||
$contact_dial = $row['contact_phone'] ? 'phone' : ($row['contact_mobile'] ? 'mobile' : '');
|
||||
$contact_portal = contactPortalAccess($row['contact_user_id'], $row['user_auth_method']);
|
||||
$contact_portal_mfa = $contact_portal === 'Password' && trim((string) $row['user_token']) !== '';
|
||||
// Their passkeys count as two-step sign-in (functions/passkey.php)
|
||||
$contact_portal_passkeys = $contact_portal === 'Password' && passkeysReady() ? passkeyCount($row['contact_user_id']) : 0;
|
||||
$contact_portal_last = $contact_portal ? portalContactLastSignIn($row['contact_user_id']) : null;
|
||||
// How they joined, when it was by an invite or signing up (functions/portal_invite.php)
|
||||
$contact_portal_joined = $contact_portal ? portalContactJoined($contact_id) : null;
|
||||
@@ -412,20 +414,20 @@ if (!$can_support) {
|
||||
<?php } ?>
|
||||
<dt>Portal</dt>
|
||||
<dd>
|
||||
<?= $contact_portal ? "Can log in · <span class='text-body-secondary'>$contact_portal" . ($contact_portal_mfa ? ' and a code' : '') . "</span>" : '<span class="text-body-secondary">No access</span>' ?>
|
||||
<?= $contact_portal ? "Can log in · <span class='text-body-secondary'>$contact_portal" . ($contact_portal_mfa ? ' and a code' : '') . ($contact_portal_passkeys ? ', or a passkey' : '') . "</span>" : '<span class="text-body-secondary">No access</span>' ?>
|
||||
<?php if ($contact_portal) { ?>
|
||||
<div class="small text-body-secondary"><?= $contact_portal_last ? 'Last signed in <span title="' . escapeHtml($contact_portal_last) . '">' . timeAgo($contact_portal_last) . '</span>' : 'Has not signed in yet' ?></div>
|
||||
<?php } ?>
|
||||
<?php if ($contact_portal_joined) { ?>
|
||||
<div class="small text-body-secondary" data-contact-joined><?= $contact_portal_joined['kind'] === 'signup' ? 'Signed up themselves' : 'Joined from ' . ($contact_portal_joined['by'] !== '' ? escapeHtml($contact_portal_joined['by']) . "'s invite" : 'an invite') ?> on <?= date('M j, Y', strtotime($contact_portal_joined['at'])) ?></div>
|
||||
<?php } ?>
|
||||
<?php if ($can_view_as || ($contact_portal_mfa && $can_edit)) { ?>
|
||||
<?php if ($can_view_as || (($contact_portal_mfa || $contact_portal_passkeys) && $can_edit)) { ?>
|
||||
<div class="d-flex flex-wrap gap-2 mt-1 small d-print-none">
|
||||
<?php if ($can_view_as) { ?>
|
||||
<a href="post.php?portal_view_as=<?= $contact_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" target="_blank" rel="noopener" title="Open the client portal as <?= $contact_name ?> sees it - read only, in a new tab"><i class="fas fa-eye me-1"></i>View portal as them</a>
|
||||
<?php } ?>
|
||||
<?php if ($contact_portal_mfa && $can_edit) { ?>
|
||||
<a class="text-danger confirm-link" href="post.php?reset_contact_portal_mfa=<?= $contact_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" data-confirm-text="<?= $contact_name ?> will sign in with their password alone until they set it up again. For a lost phone." title="For a lost phone - they can set it up again from Your account"><i class="fas fa-mobile-alt me-1"></i>Turn off two-step sign-in</a>
|
||||
<?php if (($contact_portal_mfa || $contact_portal_passkeys) && $can_edit) { ?>
|
||||
<a class="text-danger confirm-link" href="post.php?reset_contact_portal_mfa=<?= $contact_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" data-confirm-text="<?= $contact_name ?> will sign in with their password alone until they set it up again<?= $contact_portal_passkeys ? ' - their passkeys are removed too' : '' ?>. For a lost phone." title="For a lost phone - they can set it up again from Your account"><i class="fas fa-mobile-alt me-1"></i>Turn off two-step sign-in</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
@@ -49,7 +49,9 @@ ob_start();
|
||||
<?php } ?>
|
||||
|
||||
<div class="modal-body">
|
||||
<?php if (!$vault_open) { ?>
|
||||
<?php if (!$vault_open && vaultLocked()) { ?>
|
||||
<?= vaultLockedAlertHtml() ?>
|
||||
<?php } elseif (!$vault_open) { ?>
|
||||
<div class="alert alert-warning small"><i class="fas fa-lock me-2"></i>Your vault session has expired, so a new login cannot be encrypted. Sign out and back in first.</div>
|
||||
<?php } ?>
|
||||
<?php require 'credential_form.php'; ?>
|
||||
|
||||
@@ -48,7 +48,9 @@ ob_start();
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
<input type="hidden" name="credential_id" value="<?= $credential_id ?>">
|
||||
<div class="modal-body">
|
||||
<?php if (!$vault_open) { ?>
|
||||
<?php if (!$vault_open && vaultLocked()) { ?>
|
||||
<?= vaultLockedAlertHtml() ?>
|
||||
<?php } elseif (!$vault_open) { ?>
|
||||
<div class="alert alert-warning small"><i class="fas fa-lock me-2"></i>Your vault session has expired, so this login cannot be read or saved. Sign out and back in first.</div>
|
||||
<?php } ?>
|
||||
<?php require 'credential_form.php'; ?>
|
||||
|
||||
@@ -35,7 +35,9 @@ ob_start();
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
<input type="hidden" name="credential_id" value="<?= $credential_id ?>">
|
||||
<div class="modal-body">
|
||||
<?php if (!$vault_open) { ?>
|
||||
<?php if (!$vault_open && vaultLocked()) { ?>
|
||||
<?= vaultLockedAlertHtml() ?>
|
||||
<?php } elseif (!$vault_open) { ?>
|
||||
<div class="alert alert-warning small"><i class="fas fa-lock me-2"></i>Your vault session has expired, so the new password cannot be encrypted. Sign out and back in first.</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex flex-wrap align-items-center gap-2 mb-3 small text-body-secondary">
|
||||
|
||||
@@ -688,6 +688,9 @@ if (isset($_POST['bulk_delete_contacts'])) {
|
||||
// Delete Contact User
|
||||
if ($contact_user_id > 0) {
|
||||
mysqli_query($mysqli,"DELETE FROM users WHERE user_id = $contact_user_id");
|
||||
if (passkeysReady()) {
|
||||
passkeysForget($contact_user_id);
|
||||
}
|
||||
}
|
||||
|
||||
mysqli_query($mysqli, "DELETE FROM contacts WHERE contact_id = $contact_id AND contact_client_id = $client_id");
|
||||
@@ -866,6 +869,10 @@ if (isset($_GET['reset_contact_portal_mfa'])) {
|
||||
}
|
||||
|
||||
portalMfaReset(intval($row['contact_user_id']));
|
||||
// Their passkeys count as two-step sign-in, and go too (functions/passkey.php)
|
||||
if (passkeysReady()) {
|
||||
passkeysForget(intval($row['contact_user_id']));
|
||||
}
|
||||
logAudit("Contact", "Edit", "$session_name turned off two-step sign-in for " . escapeSql($row['contact_name']) . " in the client portal", $client_id, $contact_id);
|
||||
portalMailAccountChange($row['contact_email'], $row['contact_name'], 'mfa_off_by_us');
|
||||
|
||||
@@ -1093,6 +1100,9 @@ if (isset($_GET['delete_contact'])) {
|
||||
// Delete User
|
||||
if ($contact_user_id > 0) {
|
||||
mysqli_query($mysqli,"DELETE FROM users WHERE user_id = $contact_user_id");
|
||||
if (passkeysReady()) {
|
||||
passkeysForget($contact_user_id);
|
||||
}
|
||||
}
|
||||
|
||||
mysqli_query($mysqli,"DELETE FROM contacts WHERE contact_id = $contact_id");
|
||||
|
||||
@@ -68,6 +68,10 @@ $mfa_secret = $_SESSION['mfa_token'];
|
||||
|
||||
<p class="login-box-msg fw-semibold mb-1">Set up multi-factor authentication</p>
|
||||
<p class="small text-body-secondary">Your administrator requires it - once it's set up, signing in takes your password and a code from your phone.</p>
|
||||
<?php if (passkeysOn() && passkeyCount($session_user_id)) { ?>
|
||||
<!-- A passkey is two-step sign-in already (functions/passkey.php) -->
|
||||
<p class="small text-body-secondary">You have a passkey, which counts - sign out and use <strong>Sign in with a passkey</strong> instead.</p>
|
||||
<?php } ?>
|
||||
|
||||
<form action="post.php" method="post" autocomplete="off">
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
|
||||
52
agent/user/modals/user_passkey_modal.php
Normal file
52
agent/user/modals/user_passkey_modal.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Add a passkey - from Your account > Security. js/passkey.js checks the password and has the
|
||||
* browser make the passkey, then posts it with this form to add_your_passkey
|
||||
* (agent/user/post/profile.php).
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal" id="addPasskeyModal" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fas fa-fw fa-fingerprint me-2"></i>Add a Passkey</h5>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<form action="post.php" method="post" autocomplete="off" data-passkey-add data-options-url="/agent/ajax.php" data-csrf="<?= $_SESSION['csrf_token'] ?>" data-vault="1">
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
<input type="hidden" name="add_your_passkey" value="1">
|
||||
<input type="hidden" name="passkey_client_data" value="">
|
||||
<input type="hidden" name="passkey_attestation" value="">
|
||||
<input type="hidden" name="passkey_transports" value="">
|
||||
<input type="hidden" name="passkey_prf" value="">
|
||||
<div class="modal-body">
|
||||
<p class="small text-body-secondary">Your browser asks where to keep it - this device, your phone, a security key or your password manager - and for your fingerprint, face or PIN.</p>
|
||||
<div data-passkey-message></div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-tag"></i></span>
|
||||
<input type="text" class="form-control" name="passkey_name" maxlength="<?= PASSKEY_NAME_MAX ?>" placeholder="<?= escapeHtml(passkeyDefaultName($_SERVER['HTTP_USER_AGENT'] ?? '')) ?>">
|
||||
</div>
|
||||
<div class="form-text">To tell your passkeys apart - left empty, it's named for this device.</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="form-label">Your password <strong class="text-danger">*</strong></label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-lock"></i></span>
|
||||
<input type="password" class="form-control" data-toggle="password" name="current_password" autocomplete="current-password" required>
|
||||
<span class="input-group-text"><i class="fas fa-fw fa-eye"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary fw-bold"><i class="fas fa-fingerprint me-2"></i>Add Passkey</button>
|
||||
<button type="button" class="btn btn-light" data-bs-dismiss="modal"><i class="fas fa-times me-2"></i>Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -264,3 +264,78 @@ if (isset($_POST['revoke_your_remember_token'])) {
|
||||
redirect("user_security.php");
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Passkeys (functions/passkey.php) - adding one takes their password, checked again here, and the
|
||||
* passkey the browser made (js/passkey.js). Their vault key - from this session, or their copy with
|
||||
* the password - is sealed with the passkey's PRF secret when it gave one, so it opens the vault too.
|
||||
*/
|
||||
if (isset($_POST['add_your_passkey'])) {
|
||||
|
||||
validateCSRFToken();
|
||||
|
||||
if (!passkeysOn()) {
|
||||
flashAlert('Passkeys are turned off - ask an administrator.', 'error');
|
||||
redirect("user_security.php");
|
||||
}
|
||||
|
||||
$password = (string) ($_POST['current_password'] ?? '');
|
||||
[$password_ok, $password_message, $me] = passkeyPasswordCheck($session_user_id, $password, 'add a passkey');
|
||||
if (!$password_ok) {
|
||||
flashAlert($password_message, 'error');
|
||||
redirect("user_security.php");
|
||||
}
|
||||
|
||||
$master = vaultSessionMaster();
|
||||
if ($master === false && trim((string) $me['user_specific_encryption_ciphertext']) !== '') {
|
||||
$master = decryptUserSpecificKey($me['user_specific_encryption_ciphertext'], $password);
|
||||
}
|
||||
|
||||
$name = trim((string) ($_POST['passkey_name'] ?? ''));
|
||||
if ($name === '') {
|
||||
$name = passkeyDefaultName($_SERVER['HTTP_USER_AGENT'] ?? '');
|
||||
}
|
||||
$name = mb_substr($name, 0, PASSKEY_NAME_MAX);
|
||||
|
||||
[$passkey_id, $how] = passkeyRegister($session_user_id, $name, [
|
||||
'client_data' => $_POST['passkey_client_data'] ?? '',
|
||||
'attestation' => $_POST['passkey_attestation'] ?? '',
|
||||
'transports' => $_POST['passkey_transports'] ?? '',
|
||||
'prf' => $_POST['passkey_prf'] ?? '',
|
||||
], is_string($master) ? $master : null);
|
||||
|
||||
if (!$passkey_id) {
|
||||
flashAlert(escapeHtml($how), 'error');
|
||||
redirect("user_security.php");
|
||||
}
|
||||
|
||||
logAudit("User Account", "Edit", "$session_name added a passkey (" . escapeSql($name) . ")" . ($how === 'opens' ? ' that opens their credentials' : ''));
|
||||
userNotifyChange($me['user_name'], $me['user_email'], "a passkey ($name) was added - it signs you in without your password");
|
||||
|
||||
flashAlert("Passkey <strong>" . escapeHtml($name) . "</strong> added - " . ($how === 'opens'
|
||||
? 'it signs you in and opens your credentials'
|
||||
: 'it signs you in, and you type your password once each time to open your credentials'));
|
||||
|
||||
redirect("user_security.php");
|
||||
|
||||
}
|
||||
|
||||
if (isset($_GET['delete_your_passkey'])) {
|
||||
|
||||
validateCSRFToken();
|
||||
|
||||
$name = passkeyDelete($session_user_id, intval($_GET['delete_your_passkey']));
|
||||
if ($name === false) {
|
||||
flashAlert('That passkey is already gone.', 'error');
|
||||
redirect("user_security.php");
|
||||
}
|
||||
|
||||
$me = userRow($session_user_id);
|
||||
logAudit("User Account", "Edit", "$session_name removed a passkey (" . escapeSql($name) . ")");
|
||||
userNotifyChange($me['user_name'], $me['user_email'], "a passkey ($name) was removed");
|
||||
|
||||
flashAlert("Passkey <strong>" . escapeHtml($name) . "</strong> removed - it no longer signs you in", 'error');
|
||||
|
||||
redirect("user_security.php");
|
||||
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Your account > Security - your password, multi-factor authentication, and
|
||||
* the browsers that skip your MFA code. Changing the password or turning MFA
|
||||
* off takes your current password; you are emailed either way.
|
||||
* Your account > Security - your password, multi-factor authentication, your
|
||||
* passkeys, and the browsers that skip your MFA code. Changing the password,
|
||||
* turning MFA off and adding a passkey take your current password; you are
|
||||
* emailed each time.
|
||||
*/
|
||||
|
||||
require_once "includes/inc_all_user.php";
|
||||
@@ -13,6 +14,10 @@ $has_mfa = trim((string) $me['user_token']) !== '';
|
||||
$forced = intval($me['user_config_force_mfa']) === 1;
|
||||
$browsers = userRememberedBrowsers($session_user_id);
|
||||
$remember_days = max(1, intval($config_login_remember_me_expire));
|
||||
// Passkeys, once the database has them (functions/passkey.php)
|
||||
$passkeys_ready = passkeysReady();
|
||||
$passkeys_on = $passkeys_ready && passkeysOn();
|
||||
$passkeys = $passkeys_ready ? passkeyList($session_user_id) : [];
|
||||
|
||||
?>
|
||||
|
||||
@@ -108,6 +113,43 @@ $remember_days = max(1, intval($config_login_remember_me_expire));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($passkeys_ready && ($passkeys_on || $passkeys)) { ?>
|
||||
<!-- Passkeys -->
|
||||
<div class="col-12">
|
||||
<div class="card mb-0">
|
||||
<div class="card-header bg-dark">
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-fingerprint me-2"></i>Passkeys</h3>
|
||||
<?php if ($passkeys_on) { ?>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-sm btn-outline-light" data-bs-toggle="modal" data-bs-target="#addPasskeyModal"><i class="fas fa-plus me-2"></i>Add a Passkey</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php if ($passkeys) { ?>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($passkeys as $passkey) { ?>
|
||||
<li class="list-group-item d-flex align-items-center gap-3">
|
||||
<i class="fas fa-fw fa-fingerprint fa-lg text-body-secondary"></i>
|
||||
<div class="flex-grow-1 min-w-0">
|
||||
<div class="text-truncate"><?= escapeHtml($passkey['passkey_name']) ?></div>
|
||||
<div class="small text-body-secondary"><?= passkeyMetaHtml($passkey) ?></div>
|
||||
</div>
|
||||
<a class="btn btn-sm btn-outline-danger confirm-link" href="post.php?delete_your_passkey=<?= intval($passkey['passkey_id']) ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>" title="It no longer signs you in">Remove</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php if (!$passkeys_on) { ?>
|
||||
<div class="card-footer small text-body-secondary">Your administrator has turned passkeys off, so these don't sign you in for now.</div>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<div class="card-body small text-body-secondary">
|
||||
None yet. A passkey signs you in with your fingerprint, face or PIN instead of your password - kept on this device, your phone, a security key or your password manager. It counts as multi-factor authentication, and where it can, it opens your credentials too.
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<!-- Remembered browsers -->
|
||||
<div class="col-12">
|
||||
<div class="card mb-0">
|
||||
@@ -165,6 +207,11 @@ $remember_days = max(1, intval($config_login_remember_me_expire));
|
||||
require_once "modals/user_mfa_modal.php";
|
||||
} ?>
|
||||
|
||||
<?php if ($passkeys_on) {
|
||||
require_once "modals/user_passkey_modal.php"; ?>
|
||||
<script src="<?= staticFileUrl('/js/passkey.js') ?>"></script>
|
||||
<?php } ?>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
// The new password, typed twice - said as soon as they match, or don't
|
||||
|
||||
Reference in New Issue
Block a user