feat: switched-on password rules for the hint, named refusals
The system exposes the switched-on admin password rules. mobile-api serves them to signed-in admins and, rate limited, on an exact public route for the first-login screen. Every admin password path now refuses with PASSWORD_RULE naming the first rule broken. 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
0b201a51ca
commit
5e68478670
15 files changed
+494
-3
No files matched your search
@@ -55,7 +55,9 @@ public class JWTAuthFilter implements GlobalFilter, Ordered {
|
||||
publicPath(HttpMethod.POST, "/counter/eventGuest/register"),
|
||||
publicPath(HttpMethod.GET, "/counter/checkin/findEvent/[A-Za-z0-9_-]{22}"),
|
||||
publicPath(HttpMethod.POST, "/counter/checkin/lookup"),
|
||||
publicPath(HttpMethod.POST, "/counter/checkin/byGuest"));
|
||||
publicPath(HttpMethod.POST, "/counter/checkin/byGuest"),
|
||||
// Password hint on public password screens: switched-on rule names and numbers only, no user data
|
||||
publicPath(HttpMethod.GET, "/passwordRule/adminActive"));
|
||||
|
||||
private static Map.Entry<HttpMethod, Pattern> publicPath(HttpMethod method, String regex) {
|
||||
return Map.entry(method, Pattern.compile(regex));
|
||||
|
||||
Reference in new issue
Block a user