summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-09-11 01:45:23 +0200
committerSimon Green <sgreen@redhat.com>2014-09-11 01:45:23 +0200
commitb8ecdca238744552db04acb5450ce078d9760a4c (patch)
tree42cd3a41e06fd229d6deeae6b247df724272dd3c /template/en/default
parentab1b842ba2e2f9ad3774c6c415129a4e196acc57 (diff)
downloadbugzilla-b8ecdca238744552db04acb5450ce078d9760a4c.tar.gz
bugzilla-b8ecdca238744552db04acb5450ce078d9760a4c.tar.xz
Bug 1009013 - Require a user to change their password if they log in and their current password does not meet the password complexity rules
r=glob, a=sgreen
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/admin/params/auth.html.tmpl6
-rw-r--r--template/en/default/global/user-error.html.tmpl16
2 files changed, 14 insertions, 8 deletions
diff --git a/template/en/default/admin/params/auth.html.tmpl b/template/en/default/admin/params/auth.html.tmpl
index bf8539b87..902d2fc82 100644
--- a/template/en/default/admin/params/auth.html.tmpl
+++ b/template/en/default/admin/params/auth.html.tmpl
@@ -133,5 +133,11 @@
"lower case letter and a number.</li>" _
"<li>letters_numbers_specialchars - Passwords must contain at least one " _
"letter, a number and a special character.</li></ul>"
+
+ password_check_on_login =>
+ "If set, $terms.Bugzilla will check that the password meets the current " _
+ "complexity rules and minimum length requirements when the user logs " _
+ "into the $terms.Bugzilla web interface. If it doesn't, the user would " _
+ "not be able to log in, and recieve a message to reset their password."
}
%]
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 48cbcad47..055bde3d4 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1459,18 +1459,14 @@
[% title = "Passwords Don't Match" %]
The two passwords you entered did not match.
- [% ELSIF error == "password_current_too_short" %]
- [% title = "New Password Required" %]
- Your password is currently less than
- [%+ constants.USER_PASSWORD_MIN_LENGTH FILTER html %] characters long,
- which is the new minimum length required for passwords.
- You must <a href="token.cgi?a=reqpw&amp;loginname=[% locked_user.email FILTER uri %]">
- request a new password</a> in order to log in again.
-
[% ELSIF error == "password_too_short" %]
[% title = "Password Too Short" %]
The password must be at least
[%+ constants.USER_PASSWORD_MIN_LENGTH FILTER html %] characters long.
+ [% IF locked_user %]
+ You must <a href="token.cgi?a=reqpw&amp;loginname=[% locked_user.email FILTER uri %]&amp;token=[% issue_hash_token(['reqpw']) FILTER uri %]">
+ request a new password</a> in order to log in again.
+ [% END %]
[% ELSIF error == "password_not_complex" %]
[% title = "Password Fails Requirements" %]
@@ -1488,6 +1484,10 @@
<li>digit</li>
[% END %]
</ul>
+ [% IF locked_user %]
+ You must <a href="token.cgi?a=reqpw&amp;loginname=[% locked_user.email FILTER uri %]&amp;token=[% issue_hash_token(['reqpw']) FILTER uri %]">
+ request a new password</a> in order to log in again.
+ [% END %]
[% ELSIF error == "product_access_denied" %]
[% title = "Product Access Denied" %]