From a0b81b906d26312aeb5ef6cab035954ad676790c Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Thu, 21 Mar 2019 01:53:54 +0000 Subject: [PATCH] Bug 22559: Restore OPAC forgotten password functionality To test: Enable OpacResetPassword Create a borrower with a username and password Go to the OPAC, try to reset the password (I always get the reset link token out of the message_queue in the database rather than worry about receiving the actual email. You do you.) Go to the link provided. Attempt to set a password, this should fail. Apply this patch Go through the process again, password should be reset. Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- opac/opac-password-recovery.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl index 6429f7b9a1..e4b5a91953 100755 --- a/opac/opac-password-recovery.pl +++ b/opac/opac-password-recovery.pl @@ -13,6 +13,7 @@ use Koha::Patrons; use Koha::Patrons; my $query = new CGI; use HTML::Entities; +use Try::Tiny; my ( $template, $dummy, $cookie ) = get_template_and_user( { -- 2.39.5