Bug 27342: Fix C4::ILSDI::Services::AuthenticatePatron
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 17 Aug 2022 13:33:07 +0000 (10:33 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 17 Aug 2022 13:33:07 +0000 (10:33 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/ILSDI/Services.pm

index 1c5b35c..17f55cf 100644 (file)
@@ -393,7 +393,7 @@ sub AuthenticatePatron {
     my ($cgi) = @_;
     my $username = $cgi->param('username');
     my $password = $cgi->param('password');
-    my ($status, $cardnumber, $userid) = C4::Auth::checkpw( C4::Context->dbh, $username, $password );
+    my ($status, $cardnumber, $userid) = C4::Auth::checkpw( $username, $password );
     if ( $status == 1 ) {
         # Track the login
         C4::Auth::track_login_daily( $userid );