问题描述
我有一种情况,我希望能够在网络界面中将用户密码评级到我的系统,这样在他们点击提交之前,他们就知道他们的密码是否错误。
I have a situation where I would like to be able to rate a users password in the web interface to my system, so that before they hit submit they know if they have a bad password.
主要要求:
- 必须能够对密码进行评级,而不仅仅是通过/不通过。
- 如果密码低于阈值,应禁用表格,因此用户无法提交。
- 看起来不错。 :)
- 不使用jQuery - 我们目前在这个系统中使用Mochikit和Y!UI。
- Must be able to rate the password, not just pass/fail.
- Should disable the form if the password is below a threshhold, so the user can't submit it.
- Look nice. :)
- Not use jQuery - we're currently using Mochikit and Y!UI in this system.
我发现很多用jQuery编写的密码计,以及太冗长。
I've found many password meters written in jQuery, and things like http://www.passwordmeter.com/ that are too verbose.
任何人都可以建议我可以使用javascript密码评估器,或者举例说明如何写一个?
Can anyone suggest a good drop in javascript password rater I can use, or give an example of how to write one?
推荐答案
以下是一系列脚本:
我认为他们都对密码进行评级并且不使用jQuery ...但我不知道他们是否有原生支持禁用表单?
I think both of them rate the password and don't use jQuery... but I don't know if they have native support for disabling the form?
这篇关于密码强度计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!