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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt (-1 / +22 lines)
Lines 145-147 Link Here
145
    </div><!-- / .container-fluid -->
145
    </div><!-- / .container-fluid -->
146
</div><!-- / .main -->
146
</div><!-- / .main -->
147
[% INCLUDE 'opac-bottom.inc' %]
147
[% INCLUDE 'opac-bottom.inc' %]
148
- 
148
[% BLOCK jsinclude %]
149
    [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
150
    [% PROCESS 'password_check.inc' %]
151
    [% PROCESS 'add_password_check' new_password => 'password' %]
152
    <script>
153
        $(document).ready(function() {
154
            $("#mainform").validate({
155
                rules: {
156
                    password: {
157
                        required: true,
158
                        password_strong: true,
159
                        password_no_spaces: true
160
                    },
161
                    repeatPassword: {
162
                        required: true,
163
                        password_match: true
164
                    }
165
                }
166
            });
167
        });
168
    </script>
169
[% END %]

Return to bug 26266