Quick Start
Adding the Enzoic Password Strength Meter to your existing signup or password change form is simple.
1. Include the Enzoic JS Library
Add the following script include before your closing body tag:
2. Enable Enzoic on Your Password Input Control
Add the “enz-enable” attribute to your signup form’s password input element:
Alternatively, you can call the applyToInputElement function:
Delete any existing password strength meter from the page, as you will no longer need it.
3. Modify Your Form Validation Logic
Add in code to prevent the user from submitting the form if the password strength is insufficient. The mechanism for alerting the user will be specific to your page, but a basic code snippet in JavaScript for this is below:
That’s it!
You’re done! When you reload the page, your password input will now have the Enzoic frame around it when it is focused.
Last updated