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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc (+1 lines)
Lines 63-68 Link Here
63
                [% IF CAN_user_borrowers_edit_borrowers %]
63
                [% IF CAN_user_borrowers_edit_borrowers %]
64
                    <span>
64
                    <span>
65
                        <a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | html %]">Change password</a>
65
                        <a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber | html %]">Change password</a>
66
                        or <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&amp;destination=circ&amp;resetloginattempts=y">Reset login attempts</a>
66
                    </span>
67
                    </span>
67
                [% END %]
68
                [% END %]
68
                </li>
69
                </li>
(-)a/members/setstatus.pl (-1 / +3 lines)
Lines 40-45 my $destination = $input->param("destination") || ''; Link Here
40
my $borrowernumber=$input->param('borrowernumber');
40
my $borrowernumber=$input->param('borrowernumber');
41
my $status = $input->param('status');
41
my $status = $input->param('status');
42
my $reregistration = $input->param('reregistration') || '';
42
my $reregistration = $input->param('reregistration') || '';
43
my $resetloginattempts = $input->param('resetloginattempts') || '';
43
44
44
my $dbh = C4::Context->dbh;
45
my $dbh = C4::Context->dbh;
45
my $dateexpiry;
46
my $dateexpiry;
Lines 54-59 if ( $logged_in_user->can_see_patron_infos($patron) ) { Link Here
54
    if ( $reregistration eq 'y' ) {
55
    if ( $reregistration eq 'y' ) {
55
        # re-reregistration function to automatic calcul of date expiry
56
        # re-reregistration function to automatic calcul of date expiry
56
        $dateexpiry = $patron->renew_account;
57
        $dateexpiry = $patron->renew_account;
58
    } elsif ( $resetloginattempts eq 'y' ) {
59
        $patron->login_attempts(0)->store;
57
    } else {
60
    } else {
58
        my $sth = $dbh->prepare("UPDATE borrowers SET debarred = ?, debarredcomment = '' WHERE borrowernumber = ?");
61
        my $sth = $dbh->prepare("UPDATE borrowers SET debarred = ?, debarredcomment = '' WHERE borrowernumber = ?");
59
        $sth->execute( $status, $borrowernumber );
62
        $sth->execute( $status, $borrowernumber );
60
- 

Return to bug 37512