diff --git a/src/components/adminSections.tsx b/src/components/adminSections.tsx index 2515721..ad04896 100644 --- a/src/components/adminSections.tsx +++ b/src/components/adminSections.tsx @@ -11,10 +11,8 @@ import type { SettingDesc } from '../contracts' import { docBridge } from './Workbench' import { recoveryProposalErrorMessage, recoveryProposalHint, recoveryStatusLabel } from '../recovery' -// ---- 用户管理(原 AdminUsersModal 主体,R2 管理员发放制):建号仅创建待初始化 -// 账号(HTTP 契约不含密码与管理员位),初始凭证由服务器本地 CLI 发放激活 Key; -// 恢复走属主确认制提案:管理员提案 → 用户在「设置 → 账号」本人确认 → 一次性 Key -// 只在属主会话内出现(直接签发 Key 的 HTTP 入口已被 410 替换)。---- +// ---- 用户管理:页面建号可设置/生成初始密码,管理员重置生成临时密码; +// 保留恢复提案与 Key 管理作为既有非登录页恢复流程。 ---- interface AdminUserRow { userId: string; owner: string; name: string; isAdmin: boolean; mustChangePassword: boolean; hasPassword: boolean; passwordSetAt?: string; createdAt: string; stateVersion: number } export function UsersPanel() {