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

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

Return to bug 18616