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

(-)a/installer/onboarding.pl (-1 lines)
Lines 146-152 if ( $step == 3 ) { Link Here
146
146
147
    if ( $op eq 'set_validate_min_password_length' ) {
147
    if ( $op eq 'set_validate_min_password_length' ) {
148
        my $minPasswordLength   = $input->param('pref_minPasswordLength');
148
        my $minPasswordLength   = $input->param('pref_minPasswordLength');
149
        warn $minPasswordLength;
150
        C4::Context->set_preference( 'minPasswordLength', $minPasswordLength );
149
        C4::Context->set_preference( 'minPasswordLength', $minPasswordLength );
151
        unless ($@) {
150
        unless ($@) {
152
            push @messages, { code => 'success_on_update_minPasswordLength_syspref' };
151
            push @messages, { code => 'success_on_update_minPasswordLength_syspref' };
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-1 / +1 lines)
Lines 133-139 Link Here
133
133
134
[% IF passwordwarning %]
134
[% IF passwordwarning %]
135
    <div class="dialog alert">
135
    <div class="dialog alert">
136
        <p><strong> Warning: </strong> [% passwordwarning | html %]</p>
136
        <p><strong> Warning: </strong>Your minPasswordLength system preference is less than 8 characters. This means library patrons can potentially set passwords which are vulnerable to cracking. Please set your minPasswordLength syspref to 8 or more characters.</p>
137
    </div>
137
    </div>
138
[% END %]
138
[% END %]
139
139
(-)a/members/memberentry.pl (-3 / +1 lines)
Lines 173-181 $category_type="A" unless $category_type; # FIXME we should display a error mess Link Here
173
173
174
#Check passwords
174
#Check passwords
175
my $minPasswordLength = C4::Context->preference('minPasswordLength');
175
my $minPasswordLength = C4::Context->preference('minPasswordLength');
176
warn $minPasswordLength;
177
if ($minPasswordLength < 8) {
176
if ($minPasswordLength < 8) {
178
    warn my $warning = "Your minPasswordLength system preference is less than 8 characters this means library patrons can potentially set passwords which are vulnerable to cracking. Please set your minPasswordLength syspref to 8 or more characters";
177
    my $warning = 1;
179
    $template->param("passwordwarning"=>$warning);
178
    $template->param("passwordwarning"=>$warning);
180
}
179
}
181
180
182
- 

Return to bug 18308