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

(-)a/Koha/Patron.pm (-2 / +6 lines)
Lines 334-340 sub update_password { Link Here
334
    my ( $self, $userid, $password ) = @_;
334
    my ( $self, $userid, $password ) = @_;
335
    eval { $self->userid($userid)->store; };
335
    eval { $self->userid($userid)->store; };
336
    return if $@; # Make sure the userid is not already in used by another patron
336
    return if $@; # Make sure the userid is not already in used by another patron
337
    $self->password($password)->store;
337
    $self->update(
338
        {
339
            password       => $password,
340
            login_attempts => 0,
341
        }
342
    );
338
    logaction( "MEMBERS", "CHANGE PASS", $self->borrowernumber, "" ) if C4::Context->preference("BorrowersLog");
343
    logaction( "MEMBERS", "CHANGE PASS", $self->borrowernumber, "" ) if C4::Context->preference("BorrowersLog");
339
    return 1;
344
    return 1;
340
}
345
}
341
- 

Return to bug 18314