craftpulse / craft-password-policy

Enforce a password policy on your Craft CMS users.
MIT License
27 stars 9 forks source link

Feature Request: use password strenght bar on front-end forms #25

Closed S-n-d closed 1 year ago

S-n-d commented 1 year ago

Great plugin guys!

Would be awesome if there was a way to also use the password strength bar on front-end user registration forms, just like in the control panel. Any hints?

cookie10codes commented 1 year ago

hi @S-n-d,

Thank you! We're using zxcvbn under the hood, you can implement it into your frontend https://github.com/dropbox/zxcvbn

S-n-d commented 1 year ago

@cookie10codes thanks for the suggestion! Cheers!

cookie10codes commented 1 year ago

no worries @S-n-d, it's just as simple as zxcvbn.score('passdownyourpasswordasastring')