feat(web): sign in by emailed code on the account page

Adds the email form (address, code, resend timer, aria-live status) shown only when
/v1/info reports email_auth enabled, RU/EN strings, privacy policy update, API
helpers, tests and browser QA with a mocked Hub.
This commit is contained in:
Loki 2026-10-24 17:49:41 +02:00
parent 309b77e63c
commit a4cae66336
Signed by: boba
GPG key ID: 253067914055423B
9 changed files with 528 additions and 28 deletions

View file

@ -15,6 +15,7 @@ The optional browser script requires the loopback preview from `bun run dev` or
- Keyboard-operated illustration tabs and theme selection.
- Runtime RU/EN changes and layouts at 320, 390, 768 and 1440 pixels, including account views.
- Enabled, disabled and unavailable GitHub sign-in; retry after session failure.
- Email sign-in form (shown only when `/v1/info` reports `email_auth: enabled`): address validation, rate-limit and outage messages, code step with focus and `aria-invalid`, resend timer, language switch keeping state, wrong and right code. Hub is mocked; no mail is sent.
- Profile values rendered as text, rejected unsafe avatar URLs and no script execution from hostile profile fixtures.
- CSRF-header/Origin/POST sign-out and expired-session handling.
- Browser storage contains only the UI language; no account tokens are persisted.