mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 00:29:37 +08:00
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.