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

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 272-278 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
272
('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
272
('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
273
('MembershipExpiryDaysNotice','',NULL,'Send an account expiration notice that a patron\'s card is about to expire after','Integer'),
273
('MembershipExpiryDaysNotice','',NULL,'Send an account expiration notice that a patron\'s card is about to expire after','Integer'),
274
('MergeReportFields','',NULL,'Displayed fields for deleted MARC records after merge','Free'),
274
('MergeReportFields','',NULL,'Displayed fields for deleted MARC records after merge','Free'),
275
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
275
('minPasswordLength','8',NULL,'Specify the minimum length of a patron/staff password','free'),
276
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
276
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
277
('NewsAuthorDisplay','none','none|opac|staff|both','Display the author name for news items.','Choice'),
277
('NewsAuthorDisplay','none','none|opac|staff|both','Display the author name for news items.','Choice'),
278
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
278
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
(-)a/installer/onboarding.pl (-2 / +20 lines)
Lines 272-277 if ( $step == 5 ) { Link Here
272
    $step++ if Koha::IssuingRules->count;
272
    $step++ if Koha::IssuingRules->count;
273
}
273
}
274
274
275
if ( $step == 6 ) {
276
    if ( $op eq 'set_validate_min_password_length' ) {
277
        my $minPasswordLength   = $input->param('pref_minPasswordLength');
278
        warn $minPasswordLength;
279
        C4::Context->set_preference( 'minPasswordLength', $minPasswordLength );
280
        unless ($@) {
281
            push @messages, { code => 'success_on_update_minPasswordLength_syspref' };
282
            $step++;
283
        }
284
        else {
285
            push @messages, { code => 'error_on_update_minPasswordLength_syspref' };
286
        }
287
    }
288
}
289
275
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
290
my $libraries = Koha::Libraries->search( {}, { order_by => ['branchcode'] }, );
276
$template_params->{libraries}   = $libraries;
291
$template_params->{libraries}   = $libraries;
277
$template_params->{group_types} = [
292
$template_params->{group_types} = [
Lines 291-299 $template_params->{group_types} = [ Link Here
291
    },
306
    },
292
];
307
];
293
308
294
if ( $step > 5 ) {
309
my $minPasswordLength = C4::Context->preference('minPasswordLength');
310
$template_params->{minPasswordLength} = $minPasswordLength;
311
312
if ( $step > 6 ) {
295
    $template_params->{all_done} = 1;    # If step 5 is complete, we are done!
313
    $template_params->{all_done} = 1;    # If step 5 is complete, we are done!
296
    $step = 5;
314
    $step = 6;
297
}
315
}
298
316
299
#Getting the appropriate template to display to the user
317
#Getting the appropriate template to display to the user
(-)a/koha-tmpl/intranet-tmpl/prog/css/installer.css (+4 lines)
Lines 241-243 span.breadcrumbs { Link Here
241
.deselectall.optional {
241
.deselectall.optional {
242
    display: none;
242
    display: none;
243
}
243
}
244
245
#passwordlengthhint {
246
    color:red;
247
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc (+4 lines)
Lines 32-37 Link Here
32
            <div class="alert alert-danger">The patron has not been created the entered password was too weak, must contain at least one uppercase, and lower case letter and one number</div>
32
            <div class="alert alert-danger">The patron has not been created the entered password was too weak, must contain at least one uppercase, and lower case letter and one number</div>
33
        [% CASE 'ERROR_password_has_whitespaces' %]
33
        [% CASE 'ERROR_password_has_whitespaces' %]
34
            <div class="alert alert-danger">The patron has not been created the entered password contained whitespaces</div>
34
            <div class="alert alert-danger">The patron has not been created the entered password contained whitespaces</div>
35
        [% CASE 'success_on_update_minPasswordLength_syspref' %]
36
            <div class="alert alert-success">Minimum password length set!</div>
37
        [% CASE 'error_on_update_minPasswordLength_syspref' %]
38
            <div class="alert alert-danger">Minimum password length not set!</div>
35
        [% CASE %][% message %]
39
        [% CASE %][% message %]
36
    [% END %]
40
    [% END %]
37
[% END %]
41
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt (-11 lines)
Lines 18-32 Link Here
18
            <div id="onboarding-step5" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
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>
19
                <h1 id="logo"><a href="#">Koha</a></h1>
20
20
21
                [% IF all_done %]
22
23
                    <h2>Web installer &rsaquo; Complete</h2>
24
                    [% INCLUDE 'onboarding_messages.inc' %]
25
                    <h3>Congratulations you have finished and are ready to use Koha</h3>
26
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
27
28
                [% ELSE %]
29
30
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
21
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
31
22
32
                    [% INCLUDE 'onboarding_messages.inc' %]
23
                    [% INCLUDE 'onboarding_messages.inc' %]
Lines 131-137 Link Here
131
122
132
                        <input type="submit" class="btn btn-primary" value="Submit" />
123
                        <input type="submit" class="btn btn-primary" value="Submit" />
133
                    </form>
124
                    </form>
134
                [% END %]
135
            </div> <!-- / #onboarding-step5 -->
125
            </div> <!-- / #onboarding-step5 -->
136
        </div> <!-- / .row -->
126
        </div> <!-- / .row -->
137
127
138
- 

Return to bug 18308