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

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

Return to bug 18616