View | Details | Raw Unified | Return to bug 8753
Collapse All | Expand All

(-)a/opac/opac-password-recovery.pl (-3 / +1 lines)
Lines 123-130 elsif ( $query->param('passwordReset') ) { Link Here
123
        #remove entry
123
        #remove entry
124
        my $sth = $dbh->prepare(
124
        my $sth = $dbh->prepare(
125
            "DELETE FROM borrower_password_recovery
125
            "DELETE FROM borrower_password_recovery
126
                                  WHERE uuid = ?
126
                                  WHERE uuid = ? or NOW() > valid_until"
127
                                  ORDER BY valid_until DESC LIMIT 1"
128
        );
127
        );
129
        $sth->execute($uniqueKey);
128
        $sth->execute($uniqueKey);
130
129
131
- 

Return to bug 8753