diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index eb5361ab84..ed23d464db 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -398,7 +398,7 @@ sub AuthenticatePatron { my ($cgi) = @_; my $username = $cgi->param('username'); my $password = $cgi->param('password'); - my ($status, $cardnumber, $userid, $patron) = C4::Auth::checkpw( C4::Context->dbh, $username, $password ); + my ($status, $cardnumber, $userid, $patron) = C4::Auth::checkpw( $username, $password ); if ( $status == 1 ) { # Track the login $patron->update_lastseen('connection');