I would like to add a password policy with a descriptive error message in AEM 6.2.
So far, I've tried using the AuthorizableActionProvider which works to control password creation/change but the error message when a new password fails validation is hardcoded and not friendly or helpful ("ERROR: Something went wrong while changing the user's password").
Any pointers would be much appreciated.
smacdonald2008: I've probably made my question confusing. I have regex validation working. What's not working is a descriptive error message when an invalid password is entered. It just says: "ERROR: Something went wrong while changing the user's password" and it would be better to say "ERROR: Your password needs uppercase and lowercase letters, digits and symbols." or something like that. It's this message that I'm not able to change.