-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
40 lines (23 loc) · 1.24 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
PasswordStrengthMeter
=====================
PasswordStrengthMeter is a simple prototype-based plugin to measure the strength of a password. It's inteneded to provide an indicator on the strength of a password, but it's not a predicating how strong the password really is.
The purpose of this plugin it to provide an indicator, similar to the indicators on the GMail or Yahoo Mail sign up form, to prevent users from entering too simple passwords like "love" or "money" and to get them to use more complex passwords.
Usage
=====
password_strength_meter :name, :target
:name - name of the password_strength_meter instance
:target - the id of the password_field you want to use it for
Example
=======
Add the following code into your layout:
<%= stylesheet_link_tag 'password_strength_meter.css' %>
Add the following code into a view of your choice, e.g. sign up form:
<%= f.password_field :sign_up_password %><br />
<%= password_strength_meter :sign_up_password_meter, :sign_up_password %>
Installation
============
ruby script/plugin install git://github.com/onomojo/password_strength_meter.git
Contributors
============
Brian McQuay of Onomojo - http://www.onomojo.com
Copyright (c) 2009 Frane Bandov, released under the MIT license