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 Signed-off-by: Liz Rea <wizzyrea@gmail.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commit7ac1457ffc) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit34e0f9874f) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
061e95f4b1
commit
3ade1f52cd
|
|
@ -1,6 +1,6 @@
|
|||
[% USE Koha %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %] - 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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue