feat(panel): expose owner passkey unbind in the user danger zone

DELETE /users/{id}/passkeys shipped as the owner-tier remediation for a
lost or compromised authenticator, but nothing in the panel reached it.
Add the danger-zone action with a confirm dialog; the account keeps its
other doors (email OTP, in-game op-login re-enrollment), so this severs
a credential without locking anyone out. Wire-shape test pins the call.
This commit is contained in:
Lemon-miaow committed 2026-09-23 06:24:45 +08:00
1 parent 35d93d7612
commit 11ac4f50e6
5 files changed
+76 -4

No files matched your search

+7 -1
View File
@@ -167,6 +167,12 @@
"users_danger_delete_desc": "软删除此用户。其拥有的服务器将被释放,所有会话将被撤销,账号将被永久禁用。此操作无法通过面板撤销。",
"users_danger_delete_btn": "删除用户",
"users_danger_delete_yes": "是的,永久删除",
"users_danger_passkeys": "解绑通行密钥",
"users_danger_passkeys_desc": "解除该账号持有的全部通行密钥——密钥丢失或被盗用时的补救手段。其他登录方式(邮箱验证码、游戏内审批)不受影响。",
"users_danger_passkeys_btn": "解绑通行密钥",
"users_danger_passkeys_dlg_title": "解绑通行密钥",
"users_danger_passkeys_dlg_desc": "该账号的全部通行密钥将被永久移除。这不会锁死账号:用户可用其他方式登录后,在账户页重新注册密钥。",
"users_danger_passkeys_yes": "确认解绑",
"add_image_desc": "将外部 Docker 镜像引用录入白名单,供后续创建服务器使用。",
"images_search_placeholder": "搜索镜像名称或来源...",
"search_no_results": "无匹配结果",
@@ -174,4 +180,4 @@
"submissions_search_placeholder": "搜索模组包名称或提交人...",
"trigger_build_desc": "输入镜像构建参数,在隔离命名空间中启动 Kaniko 流水线任务。",
"builds_search_placeholder": "搜索构建 ID、镜像引用或状态..."
}
}