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

(-)a/C4/InstallAuth.pm (+4 lines)
Lines 149-154 sub get_template_and_user { Link Here
149
            $template->param( CAN_user_serials          => 1 );
149
            $template->param( CAN_user_serials          => 1 );
150
            $template->param( CAN_user_reports          => 1 );
150
            $template->param( CAN_user_reports          => 1 );
151
        }
151
        }
152
153
        my $minPasswordLength = C4::Context->preference('minPasswordLength');
154
        $minPasswordLength = 3 if not $minPasswordLength or $minPasswordLength < 3;
155
        $template->param(minPasswordLength => $minPasswordLength,);
152
    }
156
    }
153
    return ( $template, $borrowernumber, $cookie );
157
    return ( $template, $borrowernumber, $cookie );
154
}
158
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt (+3 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo; Create Koha administrator patron</title>
3
<title>Koha &rsaquo; Web installer &rsaquo; Create Koha administrator patron</title>
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'installer-doc-head-close.inc' %]
Lines 112-114 Link Here
112
        </div> <!-- / .row -->
113
        </div> <!-- / .row -->
113
114
114
[% INCLUDE 'intranet-bottom.inc' %]
115
[% INCLUDE 'intranet-bottom.inc' %]
116
[% PROCESS 'password_check.inc' %]
117
[% PROCESS 'add_password_check' new_password => 'password' %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/onboarding.js (-1 / +18 lines)
Lines 1-5 Link Here
1
function _(s) { return s; } // dummy function for gettext
1
function _(s) { return s; } // dummy function for gettext
2
2
3
// http://stackoverflow.com/questions/1038746/equivalent-of-string-format-in-jquery/5341855#5341855
4
String.prototype.format = function() { return formatstr(this, arguments); };
5
function formatstr(str, col) {
6
    col = typeof col === 'object' ? col : Array.prototype.slice.call(arguments, 1);
7
    var idx = 0;
8
    return str.replace(/%%|%s|%(\d+)\$s/g, function (m, n) {
9
        if (m == "%%") { return "%"; }
10
        if (m == "%s") { return col[idx++]; }
11
        return col[n];
12
    });
13
}
14
3
jQuery.validator.addMethod( "category_code_check", function(value,element){
15
jQuery.validator.addMethod( "category_code_check", function(value,element){
4
    var patt = /^[A-Za-z0-9]{0,10}$/g;
16
    var patt = /^[A-Za-z0-9]{0,10}$/g;
5
    if (patt.test(element.value)) {
17
    if (patt.test(element.value)) {
Lines 114-119 $(document).ready(function() { Link Here
114
                required: true
126
                required: true
115
            },
127
            },
116
            password: {
128
            password: {
129
                required: true,
130
                password_strong: true,
131
                password_no_spaces: true
132
            },
133
            password2: {
134
                required: true,
117
                password_match: true
135
                password_match: true
118
            }
136
            }
119
        },
137
        },
120
- 

Return to bug 19514