fix(auth): scope blank-input grace window to page mount, not server boot #14
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/register-grace-per-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The hydration race that causes blank submissions is per-page-load: the
Register/Login button becomes clickable before Dioxus wires the
oninput handlers on that specific page. Tying the grace to server
startup only helped users who happened to load within 2 min of boot.
The guard now lives on the client: each page timestamps its own mount
and shows "Something went wrong, please try again" if a blank submit
happens within 2 minutes of that mount, otherwise the generic
"Registration failed" / "Invalid credentials". The client short-circuits
blank submissions so they never hit the server; the server still
rejects blank input defensively with the generic message.
Server-side startup-grace machinery (SERVER_STARTED_AT, STARTUP_GRACE,
server_started_at, within_startup_window, classify_blank_error) and its
unit tests are removed.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com