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 |
- |
|
|