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

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

Return to bug 21533