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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt (+3 lines)
Lines 72-77 Link Here
72
                        [% IF ( ERROR_from_plugin ) %]
72
                        [% IF ( ERROR_from_plugin ) %]
73
                            <li id="ERROR_from_plugin">The password was rejected by a plugin.</li>
73
                            <li id="ERROR_from_plugin">The password was rejected by a plugin.</li>
74
                        [% END %]
74
                        [% END %]
75
                        [% IF ( ERROR_password_used_before ) %]
76
                            <li id="ERROR_used_before">This password has been used before. You cannot reuse any of your last [% password_history_count | html %] passwords.</li>
77
                        [% END %]
75
                        [% IF ( NOPERMISSION ) %]
78
                        [% IF ( NOPERMISSION ) %]
76
                            <li>You do not have permission to edit this patron's login information.</li>
79
                            <li>You do not have permission to edit this patron's login information.</li>
77
                        [% END %]
80
                        [% END %]
(-)a/members/member-password.pl (-1 / +4 lines)
Lines 81-86 if ( $op eq 'cud-update' && defined($newpassword) and not @errors ) { Link Here
81
            push @errors, 'ERROR_password_too_weak';
81
            push @errors, 'ERROR_password_too_weak';
82
        } elsif ( $_->isa('Koha::Exceptions::Password::Plugin') ) {
82
        } elsif ( $_->isa('Koha::Exceptions::Password::Plugin') ) {
83
            push @errors, 'ERROR_from_plugin';
83
            push @errors, 'ERROR_from_plugin';
84
        } elsif ( $_->isa('Koha::Exceptions::Password::UsedBefore') ) {
85
            my $count = C4::Context->preference('PasswordHistoryCount') || 0;
86
            push @errors, 'ERROR_password_used_before';
87
            $template->param( 'password_history_count' => $count );
84
        } else {
88
        } else {
85
            push( @errors, 'BADUSERID' );
89
            push( @errors, 'BADUSERID' );
86
        }
90
        }
87
- 

Return to bug 40824