fix: prevent demo user from changing their own password #22

Merged
patillacode merged 4 commits from hotfix/demo-user-issues into main 2026-05-02 15:23:40 +02:00
Owner

Adds a guard in the password change route that blocks the demo account,
use seed_demo() so existing passwords can be reset,
adds a just recipe and script with step-by-step feedback for prod recovery.

Adds a guard in the password change route that blocks the demo account, use `seed_demo()` so existing passwords can be reset, adds a just recipe and script with step-by-step feedback for prod recovery.
fix: prevent demo user from changing their own password
All checks were successful
Test and publish Docker image / test (pull_request) Successful in 36s
Test and publish Docker image / e2e (pull_request) Successful in 4m37s
Test and publish Docker image / build (pull_request) Has been skipped
ddc9ce33f4
Adds a guard in the password change route that blocks the demo account,
upserts seed_demo() so existing passwords can be reset, adds a just recipe
and script with step-by-step feedback for prod recovery.
Prevents trolls from resetting the demo password via recovery codes or
the forgot-password route. Also fixes a test env leak in test_main.py
that was leaving DEMO_USERNAME set across tests.
test: add e2e tests for demo user password restrictions
Some checks failed
Test and publish Docker image / test (pull_request) Failing after 18s
Test and publish Docker image / e2e (pull_request) Has been skipped
Test and publish Docker image / build (pull_request) Has been skipped
f8c191f012
wip
All checks were successful
Test and publish Docker image / test (pull_request) Successful in 35s
Test and publish Docker image / e2e (pull_request) Successful in 4m41s
Test and publish Docker image / build (pull_request) Has been skipped
903875c466
patillacode deleted branch hotfix/demo-user-issues 2026-05-02 15:23:41 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
patillacode/piruetas!22
No description provided.