feat: locked sign-in message and Change password dialog in the portal
mobile-api now records the browser user agent the portal forwards as X-Client-User-Agent instead of the portal server's own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
5ce684168a
commit
6598b58cb8
14 files changed
+364
-12
No files matched your search
@@ -56,7 +56,7 @@ Design: `design.md`. All tasks run serially: each builds on the one before.
|
||||
- a success records `LOGIN_SUCCESS`;
|
||||
- a record failure does not change the answer;
|
||||
- logout records `LOGOUT`;
|
||||
- the IP and user agent are taken from `X-Client-IP` and `User-Agent`.
|
||||
- the IP and user agent are taken from `X-Client-Ip` and `X-Client-User-Agent`.
|
||||
- Scope: `solvway-mobile-api/src/**` (`AdminAuthController`, a new login-audit client, constants, tests)
|
||||
- Verify: `mvn -T 1C -B -q -pl solvway-mobile-api -am verify`
|
||||
|
||||
@@ -87,8 +87,8 @@ Design: `design.md`. All tasks run serially: each builds on the one before.
|
||||
|
||||
## 4. Portal
|
||||
|
||||
- [ ] 4.1 Sign-in pieces (design decisions 6 and 9).
|
||||
- The login and logout routes forward `X-Client-IP` and `User-Agent`.
|
||||
- [x] 4.1 Sign-in pieces (design decisions 6 and 9).
|
||||
- The login and logout routes forward `X-Client-Ip` and `X-Client-User-Agent`.
|
||||
- The login page shows the locked message on `ACCOUNT_LOCKED`.
|
||||
- Header "Change password" item opens `ChangePasswordDialog`, using the `/api/auth/change-password` route.
|
||||
- **Tests first:**
|
||||
|
||||
Reference in new issue
Block a user