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

(-)a/Koha/Exceptions/Password.pm (-2 / +8 lines)
Lines 48-54 use Exception::Class ( Link Here
48
    'Koha::Exceptions::Password::NoCategoryProvided' => {
48
    'Koha::Exceptions::Password::NoCategoryProvided' => {
49
        isa         => 'Koha::Exceptions::Password',
49
        isa         => 'Koha::Exceptions::Password',
50
        description => 'You must provide a patron\'s category to validate password\'s strength and length'
50
        description => 'You must provide a patron\'s category to validate password\'s strength and length'
51
    }
51
    },
52
    'Koha::Exceptions::Password::UsedBefore' => {
53
        isa => 'Koha::Exceptions::Password',
54
    },
52
);
55
);
53
56
54
sub full_message {
57
sub full_message {
Lines 91-96 Password is too weak. Link Here
91
94
92
Password contains leading/trailing spaces, which is forbidden.
95
Password contains leading/trailing spaces, which is forbidden.
93
96
97
=head2 Koha::Exceptions::Password::UsedBefore
98
99
Exception to be used when a password has been used before and is not allowed by password history policy.
100
94
=head1 Class methods
101
=head1 Class methods
95
102
96
=head2 full_message
103
=head2 full_message
97
- 

Return to bug 40824