8 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
42cf57bf96 fix(auth): scope password changes and expose temporary-password state 2026-10-31 17:15:58 +08:00
yuleihaotong
35512dccff feat(auth): prompt users who still hold an admin-assigned password
Creating an account through the admin UI means the administrator picks the
password, so the owner starts life with a secret someone else knows. Nothing
in the UI said so: the password form existed, but nobody was sent to it.

- identity: accounts carry must_change_password, set on admin creation and
  cleared once the owner changes the password themselves
- POST /login returns the flag so the client can act on it right away
- GET /profile exposes it for the profile page
- web: after login, a flagged account goes straight to /profile, which shows
  why; the banner disappears once the change succeeds

Backend tests cover both directions: a successful change clears the flag, a
failed one (wrong current password) leaves it alone.
2026-10-30 17:44:24 +08:00
yuleihaotong
9c7fd4a67f feat(web): add a password card to the profile page
A three-field form (current / new / confirm) that mirrors the surrounding
cards: same rounded-2xl container, same label and input classes, same
button styling. Client-side checks for length and mismatch run before the
request; the server's two translatable errors are mapped, anything else
surfaces verbatim.

Strings added to all six locales so i18n:parity stays green.
2026-10-30 10:14:56 +08:00
Bingxi Zhao (Frank)
038b6513ed fix(auth): surface teacher and student roles in web UI 2026-09-27 03:02:21 +08:00
Bingxi Zhao (Frank)
fc39543bc0 feat: integrate frontend backend and canonical routes 2026-09-01 22:24:29 +08:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
XZH
e7d3f3c5de feat(learner): add self-service learner profiles 2026-08-30 17:29:36 -07:00
Ilia Avdeev
7901368bb2 feat: user profile page with avatar (icons + image upload) 2026-06-14 17:43:13 +02:00