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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt (+4 lines)
Lines 57-62 Link Here
57
                                [% IF password_has_whitespaces %]
57
                                [% IF password_has_whitespaces %]
58
                                    <span>Password must not contain leading or trailing whitespaces.</span>
58
                                    <span>Password must not contain leading or trailing whitespaces.</span>
59
                                [% END %]
59
                                [% END %]
60
                                
61
                                [% IF password_used_before %]
62
                                    <span>This password has been used before. You cannot reuse any of your last [% password_history_count | html %] passwords.</span>
63
                                [% END %]
60
64
61
                                [% IF ( WrongPass ) %]
65
                                [% IF ( WrongPass ) %]
62
                                    <span>Your current password was entered incorrectly. If this problem persists, please ask a librarian to reset your password for you.</span>
66
                                    <span>Your current password was entered incorrectly. If this problem persists, please ask a librarian to reset your password for you.</span>
(-)a/opac/opac-passwd.pl (-1 / +4 lines)
Lines 68-73 if ( $patron->category->effective_change_password ) { Link Here
68
                        if $_->isa('Koha::Exceptions::Password::TooWeak');
68
                        if $_->isa('Koha::Exceptions::Password::TooWeak');
69
                    $error = 'password_has_whitespaces'
69
                    $error = 'password_has_whitespaces'
70
                        if $_->isa('Koha::Exceptions::Password::WhitespaceCharacters');
70
                        if $_->isa('Koha::Exceptions::Password::WhitespaceCharacters');
71
                    if ($_->isa('Koha::Exceptions::Password::UsedBefore')) {
72
                        $error = 'password_used_before';
73
                        $template->param( 'password_history_count' => C4::Context->preference('PasswordHistoryCount') );
74
                    }
71
                };
75
                };
72
            }
76
            }
73
        } else {
77
        } else {
74
- 

Return to bug 40824