Repository navigation
feat(auth): 重設管理員密碼指令;安裝說明補上 .env 密碼注意事項;發布 v1.3.2 - #48
Merged
Merged
Conversation
使用者來信:照手冊手動安裝,先啟動過一次才改 .env 的密碼,管理員帳號早已依 舊密碼建立,怎麼登都是「帳號或密碼錯誤」並被鎖 15 分鐘。以前只能刪資料重裝 或還原備份。 - docker compose exec api python -m app.scripts.reset_admin:產生英數臨時密碼、 解除鎖定、重新啟用,登入後須立即改密碼;只限系統管理員帳號;記入操作軌跡 - 安裝指南、FAQ、手冊、.env.example、安裝程式結尾提示補上說明 - v1.3.1 發布日期更正為 2026-10-20 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
起因
使用者來信:照手冊手動安裝,先啟動過一次才改
.env的密碼。管理員帳號只在第一次啟動時依.env建立,之後改.env不會生效,結果怎麼登都是「帳號或密碼錯誤」,接著被鎖 15 分鐘。以前只能刪資料重裝或還原備份。變更
docker compose exec api python -m app.scripts.reset_admin(--username可指定其他管理員).env密碼只在第一次啟動有效、$/#會被截掉)與第 5 步「登不進去怎麼辦」;FAQ 新增「第一次登入就被鎖 15 分鐘」、「忘記管理員密碼」改用新指令;手冊 FAQ、.env.example、安裝程式結尾提示驗證
changeme首次啟動 → 改.env重啟 → 新密碼登入 401×4、423 鎖定,鎖定中正確密碼也 423 → 執行指令 → 臨時密碼登入 200 且須改密碼 → 改密碼後新密碼 200、舊密碼 401;帳號打錯回傳代碼 1 並列出管理員;操作軌跡有紀錄無資料表結構變更。
🤖 Generated with Claude Code