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

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

Return to bug 18616