From 828b064c2780d7059553f776aad5d3176a448c17 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 Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- 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.11.0