Bugzilla – Attachment 86909 Details for
Bug 22560
Forgotten password "token expired" page still shows boxes to reset password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22560: Forgotten password "token expired" page still shows boxes to reset password
Bug-22560-Forgotten-password-token-expired-page-st.patch (text/plain), 2.40 KB, created by
Owen Leonard
on 2019-03-22 13:29:06 UTC
(
hide
)
Description:
Bug 22560: Forgotten password "token expired" page still shows boxes to reset password
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-03-22 13:29:06 UTC
Size:
2.40 KB
patch
obsolete
>From abd346cb674a2ed15924e4138f808364f4eecc1c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 22 Mar 2019 13:19:51 +0000 >Subject: [PATCH] Bug 22560: Forgotten password "token expired" page still > shows boxes to reset password > >This patch modifies the OPAC password recovery template so that the new >password entry form doesn't appear if the patron has followed an invalid >or expired link. > >This patch also corrects the markup in the page title. > >To test, apply the patch and follow the process for resetting a >forgotten password. When you follow the password recovery link, modify >the URL so that the "uniqueKey" parameter is different. > >The page should show an error message. The password entry form should >not appear. > >Check the page title in the browser's title bar. It should look correct. > >https://bugs.koha-community.org/show_bug.cgi?id=22520 >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >index 9dc64e9..c30309e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >@@ -1,6 +1,6 @@ > [% USE Koha %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %] - Forgotten password recovery[% ELSE %]Koha online[% END %] catalog - Forgotten password recovery</title> >+<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Forgotten password recovery</title> > [% INCLUDE 'doc-head-close.inc' %] > [% BLOCK cssinclude %][% END %] > [% BLOCK jsinclude %] >@@ -100,6 +100,7 @@ > </fieldset> > </form> > [% ELSIF (new_password) %] >+ [% UNLESS ( errLinkNotValid ) %] > <form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> > <input type="hidden" name="koha_login_context" value="opac" /> > <fieldset> >@@ -119,6 +120,7 @@ > </fieldset> > </fieldset> > </form> >+ [% END %] > [% ELSIF (mail_sent) %] > <div class="alert alert-info"> > <p> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22560
:
86909
|
86979
|
86981