diff options
author | Byron Jones <glob@mozilla.com> | 2015-03-26 04:56:02 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-03-26 04:56:02 +0100 |
commit | d4a53a6c7bce28a66ff0dc70def2469692f8444c (patch) | |
tree | 59e8e8cf8f6c4fee8acee84e4d3f57e404227b7c /template/en/default/global | |
parent | 48c23b11f2fc9d7f9a0666e58e77b8a03eb94dbb (diff) | |
download | bugzilla-d4a53a6c7bce28a66ff0dc70def2469692f8444c.tar.gz bugzilla-d4a53a6c7bce28a66ff0dc70def2469692f8444c.tar.xz |
Bug 1147550: Minimum password length handler not trusted by password change
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 16 |
1 files changed, 8 insertions, 8 deletions
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 <a href="token.cgi?a=reqpw&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&loginname=[% locked_user.email FILTER uri %]&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" %] @@ -1441,6 +1437,10 @@ <li>digit</li> [% END %] </ul> + [% IF locked_user %] + You must <a href="token.cgi?a=reqpw&loginname=[% locked_user.email FILTER uri %]&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" %] |