Commit 0836d567 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_jquery_plugin_validation: Replace jquery.validation.password .

- Do not enable on all password fields
- Allow specifying strength metter for a given field
- Allow customising password validation rules by changing properties
(allows different rules in the same page)
- Login similarity check can be done by adding login as a sequence
or blacklisted word, as desired
- No hard rules of what a strong password is, instead use a reward
system for using varied characters & character classes, reduced
when password contains widely known sequences or too common
passwords.
parent b86a7355
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts92037294.88</string> </value> <value> <string>ts92283219.15</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
...@@ -27,44 +27,29 @@ ...@@ -27,44 +27,29 @@
.password-meter-message {\n .password-meter-message {\n
\ttext-align: right;\n \ttext-align: right;\n
\tfont-weight: bold;\n \tfont-weight: bold;\n
\tcolor: #676767;\n
}\n }\n
.password-meter-bg, .password-meter-bar {\n .password-meter-bg, .password-meter-bar {\n
\theight: 4px;\n \theight: 0.66ex;\n
}\n }\n
.password-meter-bg {\n .password-meter-bg {\n
\ttop: 8px;\n \ttop: 8px;\n
\tbackground: #e0e0e0;\n \tbackground: #eee;\n
}\n }\n
\n .password-meter-bg .password-meter-too-weak {\n
.password-meter-message-very-weak {\n \tbackground: #f00;\n
\tcolor: #aa0033;\n \twidth: 25%;\n
}\n
.password-meter-message-weak {\n
\tcolor: #f5ac00;\n
}\n
.password-meter-message-good {\n
\tcolor: #6699cc;\n
}\n
.password-meter-message-strong {\n
\tcolor: #008000;\n
}\n
\n
.password-meter-bg .password-meter-very-weak {\n
\tbackground: #aa0033;\n
\twidth: 30px;\n
}\n }\n
.password-meter-bg .password-meter-weak {\n .password-meter-bg .password-meter-weak {\n
\tbackground: #f5ac00;\n \tbackground: #fc0;\n
\twidth: 60px;\n \twidth: 50%;\n
}\n }\n
.password-meter-bg .password-meter-good {\n .password-meter-bg .password-meter-medium {\n
\tbackground: #6699cc;\n \tbackground: #080;\n
\twidth: 135px;\n \twidth: 75%;\n
}\n }\n
.password-meter-bg .password-meter-strong {\n .password-meter-bg .password-meter-strong {\n
\tbackground: #008000;\n \tbackground: #69c;\n
\twidth: 180px;\n \twidth: 100%;\n
}</string> </value> }</string> </value>
</item> </item>
<item> <item>
...@@ -73,7 +58,7 @@ ...@@ -73,7 +58,7 @@
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>791</int> </value> <value> <int>549</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
2012 (c) Nexedi SA 2012-2014 (c) Nexedi SA
\ No newline at end of file \ No newline at end of file
This Business Template contains only static files of jquery validation plugin 1.11.1 and password validation plugin 1.0 . This Business Template contains only static files of jquery validation plugin 1.11.1 .
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/ * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
* http://bassistance.de/jquery-plugins/jquery-plugin-password-validation/
* http://docs.jquery.com/Plugins/Validation * http://docs.jquery.com/Plugins/Validation
\ No newline at end of file
lingnan vincent
\ No newline at end of file \ No newline at end of file
4 5
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment