summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorrojanu <aliustek@gmail.com>2011-01-07 15:14:40 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-01-07 15:14:40 +0100
commit02e52f810b396c5f367dc18b162d6a6724cab754 (patch)
tree9429ed4fc89321b9af16fbfbad7583514177786a /template/en/default/global
parent0e7d52edb77ba63602172fb9ca4b743992c1fb46 (diff)
downloadbugzilla-02e52f810b396c5f367dc18b162d6a6724cab754.tar.gz
bugzilla-02e52f810b396c5f367dc18b162d6a6724cab754.tar.xz
Bug 558803: Add a parameter to specify the password complexity for new passwords
r/a=LpSolit
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/user-error.html.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index b76106f24..67012b555 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1325,6 +1325,23 @@
The password must be at least
[%+ constants.USER_PASSWORD_MIN_LENGTH FILTER html %] characters long.
+ [% ELSIF error == "password_not_complex" %]
+ [% title = "Password Fails Requirements" %]
+ [% passregex = Param('password_complexity') %]
+ The password must contain at least one:
+ <ul>
+ [% IF passregex.search('letters') %]
+ <li>UPPERCASE letter</li>
+ <li>lowercase letter</li>
+ [% END %]
+ [% IF passregex.search('numbers') %]
+ <li>digit</li>
+ [% END %]
+ [% IF passregex.search('specialchars') %]
+ <li>special character</li>
+ [% END %]
+ </ul>
+
[% ELSIF error == "product_access_denied" %]
[% title = "Product Access Denied" %]
Either the product