diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-03-11 17:15:33 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-03-11 17:15:33 +0100 |
commit | cd00796d216adf82d18ed3b3a6bbcaa7b99b4619 (patch) | |
tree | aa87f855d98bcd7c8fb2c8a38a6b7e73c41af307 /template/en/default/account/request-new-password.html.tmpl | |
parent | c3b984aa204bdb318b05302ab50702b789c305b0 (diff) | |
download | bugzilla-cd00796d216adf82d18ed3b3a6bbcaa7b99b4619.tar.gz bugzilla-cd00796d216adf82d18ed3b3a6bbcaa7b99b4619.tar.xz |
Bug 325315: The page to reset a forgotten password should be distinct from the login page
r=dkl a=glob
Diffstat (limited to 'template/en/default/account/request-new-password.html.tmpl')
-rw-r--r-- | template/en/default/account/request-new-password.html.tmpl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/template/en/default/account/request-new-password.html.tmpl b/template/en/default/account/request-new-password.html.tmpl new file mode 100644 index 000000000..a94b3a114 --- /dev/null +++ b/template/en/default/account/request-new-password.html.tmpl @@ -0,0 +1,35 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/header.html.tmpl title = "Reset Password" %] + +[% IF user.authorizer.can_change_password %] + <p> + If you have an account, but have forgotten your password, enter your + [% IF Param('emailsuffix') %] + login name + [% ELSE %] + email address + [% END %] + below and submit a request to change your password. An email with details + on how to reset your password will be sent. + </p> + + <form id="forgot_password" method="get" action="token.cgi"> + <input type="hidden" name="a" value="reqpw"> + <input id="loginname" [% IF !Param('emailsuffix') %]type="email"[% END %] + name="loginname" autofocus required> + <input type="hidden" id="token" name="token" + value="[% issue_hash_token(['reqpw']) FILTER html %]"> + <input type="submit" id="request" value="Reset Password"> + </form> +[% ELSE %] + <p>Sorry, but you cannot reset your password.</p> +[% END %] + +[% PROCESS global/footer.html.tmpl %] |