From 94d888356469f2d920835f9c6d4eba944e429f62 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 25 Sep 2017 14:14:31 -0400 Subject: Bug 1401463 - In bugzilla "you must reset password" state, all bug pages are force-redirected to password reset page, which loses "to-do" information that I have encoded as open tabs viewing particular bug pages --- template/en/default/account/reset-password.html.tmpl | 16 ++++++++++++++++ template/en/default/global/user-error.html.tmpl | 3 +++ 2 files changed, 19 insertions(+) (limited to 'template/en/default') diff --git a/template/en/default/account/reset-password.html.tmpl b/template/en/default/account/reset-password.html.tmpl index ca60c5772..a2bec34fd 100644 --- a/template/en/default/account/reset-password.html.tmpl +++ b/template/en/default/account/reset-password.html.tmpl @@ -71,6 +71,20 @@ $(function() {

Password Reset

+[% BLOCK link %] + [% prev_url FILTER html %] +[% END %] + +[% IF password_changed && prev_url_ok %] +

Continue to [% PROCESS link %]

+ [% RETURN %] +[% ELSIF prev_url_ok %] +

+ If you've already reset your password, you may continue to [% PROCESS link %] +

+[% END %] + +

[% user.password_change_reason || "You are required to update your password." FILTER html %]

@@ -82,6 +96,8 @@ $(function() {
+ +
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 3e4d7c4a0..9eefbcb73 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1402,6 +1402,9 @@ [% ELSIF error == "reset_password_denied" %] [% title = "Reset Password Denied" %] You cannot reset your password without administrative permission. + [% IF prev_url_ok %] + Continue to [% prev_url FILTER html %]. + [% END %] [% ELSIF error == "no_axes_defined" %] [% title = "No Axes Defined" %] -- cgit v1.2.3-24-g4f1b