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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt (+2 lines)
Lines 39-44 Link Here
39
                                        <span>Password must contain at least one digit, one lowercase and one uppercase.</span>
39
                                        <span>Password must contain at least one digit, one lowercase and one uppercase.</span>
40
                                    [% CASE 'password_has_whitespaces' %]
40
                                    [% CASE 'password_has_whitespaces' %]
41
                                        <span>Password must not contain leading or trailing whitespaces.</span>
41
                                        <span>Password must not contain leading or trailing whitespaces.</span>
42
                                    [% CASE 'password_used_before' %]
43
                                        <span>This password has been used before. You cannot reuse any of your last [% password_history_count | html %] passwords.</span>
42
                                    [% CASE 'invalid_credentials' %]
44
                                    [% CASE 'invalid_credentials' %]
43
                                        <span
45
                                        <span
44
                                            >You entered an incorrect username or password. Please try again! But note that passwords are case
46
                                            >You entered an incorrect username or password. Please try again! But note that passwords are case
(-)a/opac/opac-reset-password.pl (-1 / +4 lines)
Lines 71-76 if ( $op eq 'cud-update' ) { Link Here
71
                            if $_->isa('Koha::Exceptions::Password::TooWeak');
71
                            if $_->isa('Koha::Exceptions::Password::TooWeak');
72
                        $error = 'password_has_whitespaces'
72
                        $error = 'password_has_whitespaces'
73
                            if $_->isa('Koha::Exceptions::Password::WhitespaceCharacters');
73
                            if $_->isa('Koha::Exceptions::Password::WhitespaceCharacters');
74
                        if ($_->isa('Koha::Exceptions::Password::UsedBefore')) {
75
                            $template->param( password_used_before => 1 );
76
                            $template->param( password_history_count => C4::Context->preference('PasswordHistoryCount') );
77
                        }
74
                        $template->param( 'error' => $error );
78
                        $template->param( 'error' => $error );
75
                    };
79
                    };
76
                }
80
                }
77
- 

Return to bug 40824