fix: address the admin-password branch review

Create shows a link back to Users when the user was saved but the password
was not stored. The spec's secure-generator rule now names admin temporary
passwords only, and the reset requirement no longer implies the emailed reset
refuses the caller's own account. The design and handover note that mobile-api
must stay the only gateway client allowed to reach /user/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-11-30 11:27:40 +08:00
1 parent 4412d455bd
commit d2560c6b8a
6 files changed
+57 -6

No files matched your search

@@ -26,7 +26,7 @@ The system SHALL let an admin with `BO_USERS` create an admin user with name, us
### Requirement: Admin-triggered password reset
The system SHALL let an admin with `BO_USERS` give another active user a new password in one of two ways: an emailed reset, where the system emails a generated temporary password, or a temporary password the admin types with its confirmation. Either way the user's old password SHALL stop working, and the user SHALL be required to change the password at the next login. A typed password SHALL pass the admin password rules. No password SHALL be logged or returned in a response.
The system SHALL let an admin with `BO_USERS` give an active admin user a new password in one of two ways: an emailed reset, where the system emails a generated temporary password, or a temporary password the admin types with its confirmation. Either way the user's old password SHALL stop working, and the user SHALL be required to change the password at the next login. A typed password SHALL pass the admin password rules. No password SHALL be logged or returned in a response.
#### Scenario: Reset
@@ -77,7 +77,7 @@ The system SHALL refuse to set a temporary password for a disabled user, for the
### Requirement: Generated temporary passwords are unpredictable
Every temporary password the system generates SHALL come from a cryptographically secure random source. This covers the emailed admin reset and forgot-password.
Every temporary password the system generates for an admin user SHALL come from a cryptographically secure random source. This covers the emailed admin reset and admin forgot-password.
#### Scenario: Generated passwords do not repeat