[Koha-patches] [PATCH] bug/7285 Use C4::Auth::checkpw instead of checkpw only

alex.arnaud at biblibre.com alex.arnaud at biblibre.com
Fri Dec 2 09:19:55 CET 2011


From: Alex Arnaud <alex.arnaud at biblibre.com>

---
 C4/ILSDI/Services.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm
index 90f741a..067afd7 100644
--- a/C4/ILSDI/Services.pm
+++ b/C4/ILSDI/Services.pm
@@ -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' };
     }
 
-- 
1.7.0.4



More information about the Koha-patches mailing list