From 9c35a5418226f5771be91a8c3ed17f7c56751b81 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 10 Dec 2019 10:50:58 +0100 Subject: [PATCH] Bug 21761: Do not call $self->store in ->set_password Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- Koha/Patron.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 8e501fcfb1..2de2965e7f 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -770,11 +770,11 @@ sub set_password { } my $digest = Koha::AuthUtils::hash_password($password); - $self->update( - { password => $digest, - login_attempts => 0, - } - ); + + # We do not want to call $self->store and retrieve password from DB + $self->password($digest); + $self->login_attempts(0); + $self->SUPER::store; logaction( "MEMBERS", "CHANGE PASS", $self->borrowernumber, "" ) if C4::Context->preference("BorrowersLog"); -- 2.39.5