diff options
author | Byron Jones <glob@mozilla.com> | 2015-09-09 06:02:45 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-09 06:02:45 +0200 |
commit | 59b90641ea4bb7eaa651d2fa0d782c756647b3ec (patch) | |
tree | 7933745dd859b7917d6d408df3f7cafa4358050f /template | |
parent | 8c4a70129847e2a76f7ffcd321ec59f49258a3e4 (diff) | |
download | bugzilla-59b90641ea4bb7eaa651d2fa0d782c756647b3ec.tar.gz bugzilla-59b90641ea4bb7eaa651d2fa0d782c756647b3ec.tar.xz |
Bug 1201954 - Add a "forgot password" link to user preferences -> account
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/account/prefs/account.html.tmpl | 9 | ||||
-rw-r--r-- | template/en/default/account/prefs/prefs.html.tmpl | 6 |
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 %] |