From 513ec7217dab22f8127c1d65d8408968cdc62d85 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 --- 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