From 70cbdc28e3453d626e88155b56845c1aa103e9ce Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 26 Dec 2018 13:19:05 -0300 Subject: [PATCH] Bug 22048: Use set_password in Auth_with_ldap.pm Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec --- C4/Auth_with_ldap.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm index b5876a0..d9841a8 100644 --- a/C4/Auth_with_ldap.pm +++ b/C4/Auth_with_ldap.pm @@ -346,7 +346,7 @@ sub _do_changepassword { my $digest = hash_password($password); $debug and print STDERR "changing local password for borrowernumber=$borrowerid to '$digest'\n"; - Koha::Patrons->find($borrowerid)->update_password( $userid, $password ); + Koha::Patrons->find($borrowerid)->set_password({ password => $password, skip_validation => 1 }); my ($ok, $cardnum) = checkpw_internal(C4::Context->dbh, $userid, $password); return $cardnum if $ok; -- 2.1.4