feat: 单 owner 认证模型 — 替换注册为一次性设置向导 + Recovery Key + CLI 密码重置
自托管 Life OS 不应有公开注册。改为: - /setup 一次性初始化向导(创建唯一 owner + 生成 Recovery Key) - /recover 通过 Recovery Key 重置密码 - /login 未初始化时重定向到 /setup,去掉注册链接 - Better Auth databaseHooks 阻止额外用户注册 - citty CLI: bun run cli auth reset-password - 删除 /signup 路由 - 新增 system_settings 表存储 recovery key hash - 修复 drizzle.config.ts 非空断言 + sidebar.tsx cookieStore API - 更新 AGENTS.md shadcn/ui 组件编辑规则
This commit is contained in:
+2
-1
@@ -66,6 +66,7 @@
|
||||
"sonner": "^2.0.7",
|
||||
"tailwind-merge": "^3.5.0",
|
||||
"tw-animate-css": "^1.4.0",
|
||||
"babel-plugin-react-compiler": "^1.0.0"
|
||||
"babel-plugin-react-compiler": "^1.0.0",
|
||||
"citty": "^0.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user