Repository navigation
feat(auth): bootstrap initial admin on first start + change-password endpoint (v0.6.1) - #91
Merged
Merged
Conversation
…endpoint (v0.6.1) rant 2026-08-19T14:35:05: 修正 v0.6.0 — 首次启动自动创建初始管理员账号。 - db::bootstrap_admin: 空库时创建 admin@aitokenpool.local + 随机 16 位字母数字密码 + quotas(0);幂等(已有用户跳过,重启不重复);不种 demo/占位 key - main: 首次启动日志打印初始管理员凭据(仅一次,提示立即修改) - POST /api/auth/change-password: 旧密码校验 + argon2 更新(Bearer 认证) - README 快速上手改为「看启动日志 → 登录 → 立即改密」 - 106/106 tests + clippy + fmt 全绿
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: rant 2026-08-19T14:35:05 修正 v0.6.0 首次启动自动创建初始管理员。db::bootstrap_admin 空库创建 admin@aitokenpool.local + 随机16位密码 + quotas(0),幂等;main 日志打印初始凭据;POST /api/auth/change-password 改密;README 更新。106/106 tests + fmt + clippy 全绿。live smoke 验证通过。