Skip to content

Commit 197a702

Browse files
tomascohenkidclamp
authored andcommitted
Bug 22048: Use set_password in Auth_with_ldap.pm
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
1 parent 72d8a97 commit 197a702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C4/Auth_with_ldap.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ sub _do_changepassword {
346346

347347
my $digest = hash_password($password);
348348
$debug and print STDERR "changing local password for borrowernumber=$borrowerid to '$digest'\n";
349-
Koha::Patrons->find($borrowerid)->update_password( $userid, $password );
349+
Koha::Patrons->find($borrowerid)->set_password({ password => $password, skip_validation => 1 });
350350

351351
my ($ok, $cardnum) = checkpw_internal(C4::Context->dbh, $userid, $password);
352352
return $cardnum if $ok;

0 commit comments

Comments
 (0)