summaryrefslogtreecommitdiffstats
path: root/template/en/default/account/request-new-password.html.tmpl
blob: 73caa6dcbe1120d0b07daf76291b77e2fe0ec957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[%# 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 email
    address 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="email" type="email" name="email" 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 %]