Passkey bug fix in gunicorn

This commit is contained in:
喆OvO
2026-08-13 12:50:18 +08:00
parent 15b54f204e
commit 530b8a8269
4 changed files with 131 additions and 16 deletions
+17
View File
@@ -930,6 +930,23 @@
});
});
// ─── Passkey Removal (from settings) ──────
var removePasskeyBtn = $('mfa-remove-passkey');
if (removePasskeyBtn) {
removePasskeyBtn.addEventListener('click', function () {
_reauthThen(function () {
api('DELETE', '/api/auth/passkey', null, function (res) {
if (res.ok) {
toast('✅ Passkey 已移除');
loadMFAStatus();
} else {
toast('❌ ' + (res.error || '移除失败'));
}
});
});
});
}
// ─── TOTP Setup ───────────────────────────
$('mfa-setup-totp').addEventListener('click', function () {
_reauthThen(function () {