summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-09-09 06:02:45 +0200
committerByron Jones <glob@mozilla.com>2015-09-09 06:02:45 +0200
commit59b90641ea4bb7eaa651d2fa0d782c756647b3ec (patch)
tree7933745dd859b7917d6d408df3f7cafa4358050f /template/en
parent8c4a70129847e2a76f7ffcd321ec59f49258a3e4 (diff)
downloadbugzilla-59b90641ea4bb7eaa651d2fa0d782c756647b3ec.tar.gz
bugzilla-59b90641ea4bb7eaa651d2fa0d782c756647b3ec.tar.xz
Bug 1201954 - Add a "forgot password" link to user preferences -> account
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/account/prefs/account.html.tmpl9
-rw-r--r--template/en/default/account/prefs/prefs.html.tmpl6
2 files changed, 15 insertions, 0 deletions
diff --git a/template/en/default/account/prefs/account.html.tmpl b/template/en/default/account/prefs/account.html.tmpl
index 919563440..bfae7f071 100644
--- a/template/en/default/account/prefs/account.html.tmpl
+++ b/template/en/default/account/prefs/account.html.tmpl
@@ -64,6 +64,7 @@
<td>
<input type="hidden" name="old_login" value="[% user.login FILTER html %]">
<input type="password" name="old_password">
+ <a href="#" id="forgot-password">I forgot my password</a>
</td>
</tr>
[% IF user.authorizer.can_change_password %]
@@ -147,3 +148,11 @@
</tr>
</table>
+
+[% tab_footer = BLOCK %]
+ <form action="token.cgi" method="post" id="forgot-form">
+ <input type="hidden" name="loginname" value="[% user.login FILTER html %]">
+ <input type="hidden" name="a" value="reqpw">
+ <input type="hidden" name="token" value="[% issue_hash_token(['reqpw']) FILTER html %]">
+ </form>
+[% END %]
diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl
index 853841bff..8d8f53beb 100644
--- a/template/en/default/account/prefs/prefs.html.tmpl
+++ b/template/en/default/account/prefs/prefs.html.tmpl
@@ -153,6 +153,12 @@
</form>
[% END %]
+[%
+ IF tab_footer;
+ tab_footer FILTER none;
+ END;
+%]
+
[% END %]
[% PROCESS global/footer.html.tmpl %]