Lines 76-81
if ( $op eq 'add_form' ) {
Link Here
|
76 |
my $exclude_from_local_holds_priority = $input->param('exclude_from_local_holds_priority'); |
76 |
my $exclude_from_local_holds_priority = $input->param('exclude_from_local_holds_priority'); |
77 |
my $min_password_length = $input->param('min_password_length'); |
77 |
my $min_password_length = $input->param('min_password_length'); |
78 |
my $require_strong_password = $input->param('require_strong_password'); |
78 |
my $require_strong_password = $input->param('require_strong_password'); |
|
|
79 |
my $password_history_count = $input->param('password_history_count'); |
79 |
my $noissuescharge = $input->param('noissuescharge') || undef; |
80 |
my $noissuescharge = $input->param('noissuescharge') || undef; |
80 |
my $noissueschargeguarantees = $input->param('noissueschargeguarantees') || undef; |
81 |
my $noissueschargeguarantees = $input->param('noissueschargeguarantees') || undef; |
81 |
my $noissueschargeguarantorswithguarantees = $input->param('noissueschargeguarantorswithguarantees') || undef; |
82 |
my $noissueschargeguarantorswithguarantees = $input->param('noissueschargeguarantorswithguarantees') || undef; |
Lines 88-93
if ( $op eq 'add_form' ) {
Link Here
|
88 |
$reset_password = undef if $reset_password eq -1; |
89 |
$reset_password = undef if $reset_password eq -1; |
89 |
$change_password = undef if $change_password eq -1; |
90 |
$change_password = undef if $change_password eq -1; |
90 |
$min_password_length = undef unless length($min_password_length); |
91 |
$min_password_length = undef unless length($min_password_length); |
|
|
92 |
$password_history_count = $password_history_count ? int($password_history_count) : undef; |
91 |
$require_strong_password = undef if $require_strong_password eq -1; |
93 |
$require_strong_password = undef if $require_strong_password eq -1; |
92 |
$force_password_reset_when_set_by_staff = undef if $force_password_reset_when_set_by_staff eq -1; |
94 |
$force_password_reset_when_set_by_staff = undef if $force_password_reset_when_set_by_staff eq -1; |
93 |
|
95 |
|
Lines 117-122
if ( $op eq 'add_form' ) {
Link Here
|
117 |
$category->exclude_from_local_holds_priority($exclude_from_local_holds_priority); |
119 |
$category->exclude_from_local_holds_priority($exclude_from_local_holds_priority); |
118 |
$category->min_password_length($min_password_length); |
120 |
$category->min_password_length($min_password_length); |
119 |
$category->require_strong_password($require_strong_password); |
121 |
$category->require_strong_password($require_strong_password); |
|
|
122 |
$category->password_history_count($password_history_count); |
120 |
$category->noissuescharge($noissuescharge); |
123 |
$category->noissuescharge($noissuescharge); |
121 |
$category->noissueschargeguarantees($noissueschargeguarantees); |
124 |
$category->noissueschargeguarantees($noissueschargeguarantees); |
122 |
$category->noissueschargeguarantorswithguarantees($noissueschargeguarantorswithguarantees); |
125 |
$category->noissueschargeguarantorswithguarantees($noissueschargeguarantorswithguarantees); |
Lines 156-161
if ( $op eq 'add_form' ) {
Link Here
|
156 |
exclude_from_local_holds_priority => $exclude_from_local_holds_priority, |
159 |
exclude_from_local_holds_priority => $exclude_from_local_holds_priority, |
157 |
min_password_length => $min_password_length, |
160 |
min_password_length => $min_password_length, |
158 |
require_strong_password => $require_strong_password, |
161 |
require_strong_password => $require_strong_password, |
|
|
162 |
password_history_count => $password_history_count, |
159 |
noissuescharge => $noissuescharge, |
163 |
noissuescharge => $noissuescharge, |
160 |
noissueschargeguarantees => $noissueschargeguarantees, |
164 |
noissueschargeguarantees => $noissueschargeguarantees, |
161 |
noissueschargeguarantorswithguarantees => $noissueschargeguarantorswithguarantees, |
165 |
noissueschargeguarantorswithguarantees => $noissueschargeguarantorswithguarantees, |