Checking password rules before submission
-
On the change password screen, the password validator currently activates only when the form is submitted.
Is there an existing way to leverage the validator as soon as some one has typed in their password and they are reconfirming it? I'd like to give them some feedback asap if their password doesn't pass the rules.
Or do we have to write custom javascript for this?
-
You have to write custom javascript, but the rules you have configured in the tenant are available in the passwordValidationRules object.
Here is example JavaScript you may use a starting point.
-
This is now documented here: https://fusionauth.io/docs/v1/tech/themes/client-side-password-rule-validation