feat(ui): autofocus login fields; keep verification code out of form history #56
Reference in New Issue
Block a user
Delete Branch "feature/issue-44-login-autofocus-otp"
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?
What
Implements F8-01 (points 1–3 of #43) on the two-step e-mail login screen.
use:action. Focusing fires each input'sonfocus, which drops the existingreadonlyautofill guard, so the field is editable immediately.autocomplete="one-time-code"instead ofnew-password.Why point 3 needed more than "repeat the e-mail trick"
The code field already carried the full e-mail-suppression set (custom
name,autocomplete="new-password",autocorrect/autocapitalize/spellcheck=off, the readonly-until-focus Safari trick) since the app-shell landed (b6770d3) — i.e. before this report.new-passwordis a password-manager hint and does not stop Firefox's form history from saving a plain typed value and offering it back.one-time-codeis the semantic token Firefox honours specifically to keep verification codes out of form history (Mozilla bug 1547294). The e-mail field keepsnew-password(it must still fend off saved-login autofill).Tests
one-time-codetoken.Docs
ui/docs/auth-flow.mdgains a "Focus and autofill suppression" section.Closes #44