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 250-255 $(document).ready(function() { Link Here
250
		</div>
250
		</div>
251
	[% END %]
251
	[% END %]
252
252
253
[% IF passwordwarning %]
254
    <div class="dialog alert">
255
        <p><strong> Warning: </strong> [% passwordwarning %]</p>
256
    </div>
257
[% END %]
253
258
254
<div id="toolbar" class="btn-toolbar">
259
<div id="toolbar" class="btn-toolbar">
255
[% UNLESS ( check_member ) %]
260
[% UNLESS ( check_member ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep6.tt (+50 lines)
Line 0 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo;
3
    [% IF all_done %]
4
        Complete
5
    [% ELSE %]
6
        Create circulation rule
7
    [% END %]
8
</title>
9
[% INCLUDE 'installer-doc-head-close.inc' %]
10
[% INCLUDE 'validator-strings.inc' %]
11
[% INCLUDE 'installer-strings.inc' %]
12
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
13
</head>
14
15
<body id="installer" class="installer">
16
    <div class="container-fluid">
17
        <div class="row">
18
            <div id="onboarding-step5" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
19
                <h1 id="logo"><a href="#">Koha</a></h1>
20
                [% IF all_done %]
21
                    <h2>Web installer &rsaquo; Complete</h2>
22
                    [% INCLUDE 'onboarding_messages.inc' %]
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>
25
                [% ELSE %]
26
27
                    <h2>Web installer &rsaquo; Set minPasswordLength system preference </h2>
28
29
                    [% INCLUDE 'onboarding_messages.inc' %]
30
31
                    The minPasswordLength system preference is a setting for the shortest length library staff and patrons can set their passwords to.
32
                    <form name="setMinPasswordLength" method="post" action="onboarding.pl">
33
                        <fieldset class="rows">
34
                            <input type="hidden" name="step" value="6"/>
35
                            <input type="hidden" name="op" value="set_validate_min_password_length" />
36
                            <ol>
37
                                <li>
38
                                    <label for="minPasswordname" class="required"> Set your minPasswordLength</label>
39
                                    <input type="number" id="pref_minPasswordLength" name="pref_minPasswordLength" value="[% minPasswordLength%]" min=1></input>
40
                                    <span class="required">Required</span>
41
                                </li>
42
                        </fieldset>
43
44
                        <input type="submit" class="btn btn-primary" value="Submit" />
45
                    </form>
46
                [% END %]
47
            </div> <!-- / #onboarding-step6 -->
48
        </div> <!-- / .row -->
49
50
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/members/memberentry.pl (-1 / +10 lines)
Lines 174-179 $category_type="A" unless $category_type; # FIXME we should display a error mess Link Here
174
# if a add or modify is requested => check validity of data.
174
# if a add or modify is requested => check validity of data.
175
%data = %$borrower_data if ($borrower_data);
175
%data = %$borrower_data if ($borrower_data);
176
176
177
#Check passwords
178
my $minPasswordLength = C4::Context->preference('minPasswordLength');
179
warn $minPasswordLength;
180
if ($minPasswordLength < 8) {
181
    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";
182
    $template->param("passwordwarning"=>$warning);
183
}
184
177
# initialize %newdata
185
# initialize %newdata
178
my %newdata;                                                                             # comes from $input->param()
186
my %newdata;                                                                             # comes from $input->param()
179
if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) {
187
if ( $op eq 'insert' || $op eq 'modify' || $op eq 'save' || $op eq 'duplicate' ) {
Lines 355-360 if ($op eq 'save' || $op eq 'insert'){ Link Here
355
    push @errors, "ERROR_login_exist";
363
    push @errors, "ERROR_login_exist";
356
  }
364
  }
357
365
366
367
358
  my $password = $input->param('password');
368
  my $password = $input->param('password');
359
  my $password2 = $input->param('password2');
369
  my $password2 = $input->param('password2');
360
  push @errors, "ERROR_password_mismatch" if ( $password ne $password2 );
370
  push @errors, "ERROR_password_mismatch" if ( $password ne $password2 );
361
- 

Return to bug 18308