Repository navigation
fix(ui): login 403 (unverified email) → verify form + auto resend - #107
Merged
Merged
Conversation
…o resend code
Rant 2026-08-21T12:31:48: logging in with an unverified account returned
403 with only a toast — no way to reach the verification code form.
Add a 403 branch to the login submit catch:
- prefill #verify-email with the attempted email
- showAuthForm("verify") to reveal the code form + resend button
- auto-trigger #resend-btn click to send the code immediately
- bump cache-busting version to 20260821-1
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
Fixes the dead-end when logging in with an unverified email: the API returns
403 邮箱未验证,请先输入验证码完成验证, but the login page only showed a toast — the user had no way to reach the verification code form.The login submit
catchnow handles403(in addition to the existing401branch):#verify-emailwith the attempted emailshowAuthForm("verify")— code input + resend button + submit were already implemented)429message)20260821-1Related Issue
Host bug report rant
2026-08-21T12:31:48(project: aitokenpool) — no GitHub issue number.Changes
ui/js/app.js: login catch gains a403branch → verify form + prefill + auto resendui/index.html: cache-busting versionv=20260820-5→v=20260821-1Tests
cargo test— 132 passed; 0 failedcargo fmt --check— passcargo clippy --all-targets— no new warningsnode --checkon allui/js/*.jsChecklist
fix/...)