X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FAuth_with_ldap.pm;h=d9841a88a03f86162505e581bfac06f196edc5fd;hb=refs%2Fheads%2Fkoha_ffzg;hp=b5876a0d8dd119725dd46acab25fdaa122f61235;hpb=8eed0466381435a0426fe9c2ea75fa295d906533;p=koha.git diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm index b5876a0d8d..d9841a88a0 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;