Reset password: Add inline validation messaging for password pattern requirements (closes #21255)#22880
Conversation
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
|
Claude finished @NguyenThuyLan's task in 6m 3s —— View job PR ReviewTarget: Replaces the browser-default constraint-violation tooltip for password pattern mismatches with a localized inline message (
Important
Suggestions
Approved with Suggestions for improvementGood to go, but please carefully consider the importance of the suggestion around declarative Lit event bindings. |
…8/improvement/login-password-inline-validation
|
Claude finished @NguyenThuyLan's task in 3m 22s —— View job PR ReviewTarget: Replaces the browser-default constraint-violation tooltip for password
Suggestions
Approved with Suggestions for improvementGood to go — the previous feedback on anonymous closures has been properly addressed by using stable class-field references ( |
AndyButland
left a comment
There was a problem hiding this comment.
This is working as expected @NguyenThuyLan, nice work. I've verified the default message as well as overriding having added the following in a local project App_Plugins/login-message-override/umbraco-package.json:
{
"$schema": "../../umbraco-package-schema.json",
"name": "Login Message Override",
"allowPublicAccess": true,
"extensions": [
{
"type": "localization",
"alias": "LoginMessageOverride.Lang.EN",
"name": "Login Message Override (English)",
"weight": 1000,
"meta": {
"culture": "en",
"localizations": {
"login": {
"invalidPasswordMessage": "You need to include a digit in your password"
}
}
}
},
{
"type": "localization",
"alias": "LoginMessageOverride.Lang.EN_US",
"name": "Login Message Override (English - United States)",
"weight": 1000,
"meta": {
"culture": "en-US",
"localizations": {
"login": {
"invalidPasswordMessage": "You need to include a digit in your password"
}
}
}
}
]
}
…requirements (#22880) * add custom validation for password input in reset password * update remove invalid listeners in disconnectedCallback --------- Co-authored-by: Lan Nguyen Thuy <lnt@umbraco.dk>
|
Cherry-picked into |
…requirements (#22880) * add custom validation for password input in reset password * update remove invalid listeners in disconnectedCallback --------- Co-authored-by: Lan Nguyen Thuy <lnt@umbraco.dk>
Prerequisites
Description
Now, when a field becomes invalid due to a pattern mismatch, a localized error message (
login_invalidPasswordMessage) is shown inline viasetCustomValidity. This allows this error message to be customized through localization.invalidPasswordMessagelocalization key has been added toen.ts.The password is not strong enough.How to test:
The password is not strong enough.login_invalidPasswordMessageand see if the custom message is shown, like: