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

(-)a/opac/opac-password-recovery.pl (-3 / +2 lines)
Lines 57-66 if ( $query->param('sendEmail') || $query->param('resendEmail') ) { Link Here
57
57
58
    # Find the borrower by userid, card number, or email
58
    # Find the borrower by userid, card number, or email
59
    if ($username) {
59
    if ($username) {
60
        $search_results = Koha::Patrons->search( { -or => { userid => $username, cardnumber => $username } } );
60
        $search_results = Koha::Patrons->search( { -or => { userid => $username, cardnumber => $username }, login_attempts => { '!=', Koha::Patron::ADMINISTRATIVE_LOCKOUT } } );
61
    }
61
    }
62
    elsif ($email) {
62
    elsif ($email) {
63
        $search_results = Koha::Patrons->search( { -or => { email => $email, emailpro => $email, B_email  => $email } } );
63
        $search_results = Koha::Patrons->search( { -or => { email => $email, emailpro => $email, B_email  => $email }, login_attempts => { '!=', Koha::Patron::ADMINISTRATIVE_LOCKOUT } } );
64
    }
64
    }
65
65
66
    if ( !defined $search_results || $search_results->count < 1) {
66
    if ( !defined $search_results || $search_results->count < 1) {
67
- 

Return to bug 21533