From d4a53a6c7bce28a66ff0dc70def2469692f8444c Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 26 Mar 2015 11:56:02 +0800 Subject: Bug 1147550: Minimum password length handler not trusted by password change --- template/en/default/admin/params/auth.html.tmpl | 8 +++++++- template/en/default/global/user-error.html.tmpl | 16 ++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'template/en/default') diff --git a/template/en/default/admin/params/auth.html.tmpl b/template/en/default/admin/params/auth.html.tmpl index 7a8d34791..85d707706 100644 --- a/template/en/default/admin/params/auth.html.tmpl +++ b/template/en/default/admin/params/auth.html.tmpl @@ -143,5 +143,11 @@ "lower case letter and a number." _ "
  • letters_numbers_specialchars - Passwords must contain at least one " _ "UPPER or one lower case letter, a number and a special character.
  • " - } + }, + + 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 938c4d44d..250ab0e1d 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1412,18 +1412,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 - request a new password 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 + request a new password in order to log in again. + [% END %] [% ELSIF error == "password_not_complex" %] [% title = "Password Fails Requirements" %] @@ -1441,6 +1437,10 @@
  • digit
  • [% END %] + [% IF locked_user %] + You must + request a new password in order to log in again. + [% END %] [% ELSIF error == "password_not_complex" %] [% title = "Password Fails Requirements" %] -- cgit v1.2.3-24-g4f1b