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

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

Return to bug 28630