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

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

Return to bug 18314