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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc (-2 / +1 lines)
Lines 14-20 Link Here
14
            var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength');
14
            var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength');
15
            var regex_text = require_strong?"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{"+min_lenght+",}":".{"+min_lenght+",}";
15
            var regex_text = require_strong?"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{"+min_lenght+",}":".{"+min_lenght+",}";
16
            var pattern_regex = new RegExp(regex_text);
16
            var pattern_regex = new RegExp(regex_text);
17
            return this.optional(element) || pattern_regex.test(value);
17
            return this.optional(element) || value == '****' || pattern_regex.test(value);
18
        }, function(unused, element) {
18
        }, function(unused, element) {
19
            var require_strong = $('select'+category_selector+' option:selected').data('pwdStrong');
19
            var require_strong = $('select'+category_selector+' option:selected').data('pwdStrong');
20
            var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength');
20
            var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength');
21
- 

Return to bug 23816