View | Details | Raw Unified | Return to bug 21761
Collapse All | Expand All

(-)a/Koha/Patron.pm (-6 / +5 lines)
Lines 770-780 sub set_password { Link Here
770
    }
770
    }
771
771
772
    my $digest = Koha::AuthUtils::hash_password($password);
772
    my $digest = Koha::AuthUtils::hash_password($password);
773
    $self->update(
773
774
        {   password       => $digest,
774
    # We do not want to call $self->store and retrieve password from DB
775
            login_attempts => 0,
775
    $self->password($digest);
776
        }
776
    $self->login_attempts(0);
777
    );
777
    $self->SUPER::store;
778
778
779
    logaction( "MEMBERS", "CHANGE PASS", $self->borrowernumber, "" )
779
    logaction( "MEMBERS", "CHANGE PASS", $self->borrowernumber, "" )
780
        if C4::Context->preference("BorrowersLog");
780
        if C4::Context->preference("BorrowersLog");
781
- 

Return to bug 21761