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

(-)a/C4/ILSDI/Services.pm (-1 / +2 lines)
Lines 398-403 sub AuthenticatePatron { Link Here
398
    my $password = $cgi->param('password');
398
    my $password = $cgi->param('password');
399
    my ($status, $cardnumber, $userid) = C4::Auth::checkpw( C4::Context->dbh, $username, $password );
399
    my ($status, $cardnumber, $userid) = C4::Auth::checkpw( C4::Context->dbh, $username, $password );
400
    if ( $status ) {
400
    if ( $status ) {
401
        # Track the login
402
        C4::Auth::track_login_daily( $userid );
401
        # Get the borrower
403
        # Get the borrower
402
        my $patron = Koha::Patrons->find( { userid => $userid } );
404
        my $patron = Koha::Patrons->find( { userid => $userid } );
403
        return { id => $patron->borrowernumber };
405
        return { id => $patron->borrowernumber };
404
- 

Return to bug 28630