|
Lines 82-90
if ( $op eq 'cud-update' && defined($newpassword) and not @errors ) {
Link Here
|
| 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') ) { |
84 |
} elsif ( $_->isa('Koha::Exceptions::Password::UsedBefore') ) { |
| 85 |
my $count = C4::Context->preference('PasswordHistoryCount') || 0; |
|
|
| 86 |
push @errors, 'ERROR_password_used_before'; |
85 |
push @errors, 'ERROR_password_used_before'; |
| 87 |
$template->param( 'password_history_count' => $count ); |
86 |
$template->param( 'password_history_count' => $patron->category->effective_password_history_count ); |
| 88 |
} else { |
87 |
} else { |
| 89 |
push( @errors, 'BADUSERID' ); |
88 |
push( @errors, 'BADUSERID' ); |
| 90 |
} |
89 |
} |