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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+5 lines)
Lines 131-136 Link Here
131
		</div>
131
		</div>
132
	[% END %]
132
	[% END %]
133
133
134
[% IF passwordwarning %]
135
    <div class="dialog alert">
136
        <p><strong> Warning: </strong> [% passwordwarning %]</p>
137
    </div>
138
[% END %]
134
139
135
<div id="toolbar" class="btn-toolbar">
140
<div id="toolbar" class="btn-toolbar">
136
[% UNLESS ( check_member ) %]
141
[% UNLESS ( check_member ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt (-1 / +2 lines)
Lines 23-33 Link Here
23
                    <h3>Congratulations you have finished and are ready to use Koha</h3>
23
                    <h3>Congratulations you have finished and are ready to use Koha</h3>
24
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
24
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
25
                [% ELSE %]
25
                [% ELSE %]
26
26
                    <h2>Web installer &rsaquo; Set minPasswordLength system preference </h2>
27
                    <h2>Web installer &rsaquo; Set minPasswordLength system preference </h2>
28
27
                    [% INCLUDE 'onboarding_messages.inc' %]
29
                    [% INCLUDE 'onboarding_messages.inc' %]
28
30
29
                    The minPasswordLength system preference is a setting for the shortest length library staff and patrons can set their passwords to.
31
                    The minPasswordLength system preference is a setting for the shortest length library staff and patrons can set their passwords to.
30
31
                    <form name="setMinPasswordLength" method="post" action="onboarding.pl">
32
                    <form name="setMinPasswordLength" method="post" action="onboarding.pl">
32
                        <fieldset class="rows">
33
                        <fieldset class="rows">
33
                            <input type="hidden" name="step" value="6"/>
34
                            <input type="hidden" name="step" value="6"/>
(-)a/members/memberentry.pl (-1 / +10 lines)
Lines 171-176 $category_type="A" unless $category_type; # FIXME we should display a error mess Link Here
171
# if a add or modify is requested => check validity of data.
171
# if a add or modify is requested => check validity of data.
172
%data = %$borrower_data if ($borrower_data);
172
%data = %$borrower_data if ($borrower_data);
173
173
174
#Check passwords
175
my $minPasswordLength = C4::Context->preference('minPasswordLength');
176
warn $minPasswordLength;
177
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";
179
    $template->param("passwordwarning"=>$warning);
180
}
181
174
# initialize %newdata
182
# initialize %newdata
175
my %newdata;                                                                             # comes from $input->param()
183
my %newdata;                                                                             # comes from $input->param()
176
if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) {
184
if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) {
Lines 365-370 if ($op eq 'save' || $op eq 'insert'){ Link Here
365
    push @errors, "ERROR_login_exist";
373
    push @errors, "ERROR_login_exist";
366
  }
374
  }
367
375
376
377
368
  my $password = $input->param('password');
378
  my $password = $input->param('password');
369
  my $password2 = $input->param('password2');
379
  my $password2 = $input->param('password2');
370
  push @errors, "ERROR_password_mismatch" if ( $password ne $password2 );
380
  push @errors, "ERROR_password_mismatch" if ( $password ne $password2 );
371
- 

Return to bug 18308