From 1e8d9df2c39851bed1144ab3180fcb480f530f9e Mon Sep 17 00:00:00 2001 From: Blou Date: Wed, 5 Feb 2014 08:09:03 -0500 Subject: [PATCH] Delete the exprired links after (any) successful reset http://bugs.koha-community.org/show_bug.cgi?id=8753 --- opac/opac-password-recovery.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl index 262c6c8..0fe7b03 100755 --- a/opac/opac-password-recovery.pl +++ b/opac/opac-password-recovery.pl @@ -123,8 +123,7 @@ elsif ( $query->param('passwordReset') ) { #remove entry my $sth = $dbh->prepare( "DELETE FROM borrower_password_recovery - WHERE uuid = ? - ORDER BY valid_until DESC LIMIT 1" + WHERE uuid = ? or NOW() > valid_until" ); $sth->execute($uniqueKey); -- 1.7.9.5