Lines 81-91
elsif ( $op eq 'cud-add_validate' ) {
Link Here
|
81 |
my $require_strong_password = $input->param('require_strong_password'); |
81 |
my $require_strong_password = $input->param('require_strong_password'); |
82 |
my @branches = grep { $_ ne q{} } $input->multi_param('branches'); |
82 |
my @branches = grep { $_ ne q{} } $input->multi_param('branches'); |
83 |
my $can_be_guarantee = $input->param('can_be_guarantee'); |
83 |
my $can_be_guarantee = $input->param('can_be_guarantee'); |
|
|
84 |
my $force_password_reset_when_set_by_staff = $input->param('force_password_reset_when_set_by_staff'); |
84 |
|
85 |
|
85 |
$reset_password = undef if $reset_password eq -1; |
86 |
$reset_password = undef if $reset_password eq -1; |
86 |
$change_password = undef if $change_password eq -1; |
87 |
$change_password = undef if $change_password eq -1; |
87 |
$min_password_length = undef unless length($min_password_length); |
88 |
$min_password_length = undef unless length($min_password_length); |
88 |
$require_strong_password = undef if $require_strong_password eq -1; |
89 |
$require_strong_password = undef if $require_strong_password eq -1; |
|
|
90 |
$force_password_reset_when_set_by_staff = undef if $force_password_reset_when_set_by_staff eq -1; |
89 |
|
91 |
|
90 |
my $is_a_modif = $input->param("is_a_modif"); |
92 |
my $is_a_modif = $input->param("is_a_modif"); |
91 |
|
93 |
|
Lines 113-118
elsif ( $op eq 'cud-add_validate' ) {
Link Here
|
113 |
$category->exclude_from_local_holds_priority($exclude_from_local_holds_priority); |
115 |
$category->exclude_from_local_holds_priority($exclude_from_local_holds_priority); |
114 |
$category->min_password_length($min_password_length); |
116 |
$category->min_password_length($min_password_length); |
115 |
$category->require_strong_password($require_strong_password); |
117 |
$category->require_strong_password($require_strong_password); |
|
|
118 |
$category->force_password_reset_when_set_by_staff($force_password_reset_when_set_by_staff); |
116 |
eval { |
119 |
eval { |
117 |
$category->store; |
120 |
$category->store; |
118 |
$category->replace_library_limits( \@branches ); |
121 |
$category->replace_library_limits( \@branches ); |
Lines 147-152
elsif ( $op eq 'cud-add_validate' ) {
Link Here
|
147 |
exclude_from_local_holds_priority => $exclude_from_local_holds_priority, |
150 |
exclude_from_local_holds_priority => $exclude_from_local_holds_priority, |
148 |
min_password_length => $min_password_length, |
151 |
min_password_length => $min_password_length, |
149 |
require_strong_password => $require_strong_password, |
152 |
require_strong_password => $require_strong_password, |
|
|
153 |
force_password_reset_when_set_by_staff => $force_password_reset_when_set_by_staff, |
150 |
}); |
154 |
}); |
151 |
eval { |
155 |
eval { |
152 |
$category->store; |
156 |
$category->store; |