LP#1468422 SIP password verification
authorBill Erickson <berickxx@gmail.com>
Tue, 24 Nov 2015 16:46:32 +0000 (11:46 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 26 Feb 2016 15:07:42 +0000 (10:07 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm

index 1600db1..16f2563 100644 (file)
@@ -388,7 +388,8 @@ sub check_password {
     my ($self, $pwd) = @_;
     syslog('LOG_DEBUG', 'OILS: Patron->check_password()');
     return 0 unless (defined $pwd and $self->{user});
-    return md5_hex($pwd) eq $self->{user}->passwd;
+    return $U->verify_migrated_user_password(
+        $self->{editor},$self->{user}->id, $pwd);
 }
 
 sub currency {              # not really implemented