bug/7285 Use C4::Auth::checkpw instead of checkpw only
authorAlex Arnaud <alex.arnaud@biblibre.com>
Fri, 2 Dec 2011 08:19:33 +0000 (09:19 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 6 Dec 2011 17:58:30 +0000 (18:58 +0100)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

C4/ILSDI/Services.pm

index 90f741a..067afd7 100644 (file)
@@ -315,7 +315,7 @@ sub AuthenticatePatron {
     my ($cgi) = @_;
 
     # Check if borrower exists, using a C4::Auth function...
-    unless( checkpw( C4::Context->dbh, $cgi->param('username'), $cgi->param('password') ) ) {
+    unless( C4::Auth::checkpw( C4::Context->dbh, $cgi->param('username'), $cgi->param('password') ) ) {
         return { code => 'PatronNotFound' };
     }