aaronlumsden / Strength.js

The ultimate jQuery password input plugin. Featuring secure strength indicator and hide/show password
http://git.aaronlumsden.com/strength.js/
222 stars 92 forks source link

No API to check for the password strength?! #11

Open omidkrad opened 9 years ago

omidkrad commented 9 years ago

Maybe I'm missing it but I don't think anybody would want to only display a password strength indicator without a way to verify that a weak password in not entered before submitting the form.

I can get the plug-in with $("input#password").data("plugin_strength") but can't find any data in it indicating the current password strength.

omidkrad commented 9 years ago

OK, I could do it like this:

$("div[data-meter=password]").hasClass("strong")

I still think it would be more intuitive if the plug-in directly provided some property to check for the strength. Thanks!