Repository navigation
|
Hey! At my company, we recently implemented a feature with Keycloak that disables accounts that have been inactive for 90 days. But we encountered an issue: in the login flow, specifically the login-username.ftl, we would like to inform users of disabled accounts, that their account is disabled and that they must reach out. Thanks! |
Replies: 1 comment
|
I combed through the source code and found the solution: The error is placed in a "global" field in messagesPerField, so it can be accessed using |
I combed through the source code and found the solution: The error is placed in a "global" field in messagesPerField, so it can be accessed using
messagesPerField.get("global")?no_escor, if multiple fields should be queried:messagesPerField.getFirstError("global", "username", ...)