From 59b79b6045f0a085b63abf25247f09fe1b7063f3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 10 Sep 2020 09:57:51 +0200 Subject: [PATCH] Bug 23816: Fix patron edition The patron edition was broken, we always got the pattern alert Password: Password must contain at least 8 characters, including UPPERCASE, lowercase and numbers Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc index 1c11896c57..2960da66ee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/password_check.inc @@ -14,7 +14,7 @@ var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength'); var regex_text = require_strong?"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{"+min_lenght+",}":".{"+min_lenght+",}"; var pattern_regex = new RegExp(regex_text); - return this.optional(element) || pattern_regex.test(value); + return this.optional(element) || value == '****' || pattern_regex.test(value); }, function(unused, element) { var require_strong = $('select'+category_selector+' option:selected').data('pwdStrong'); var min_lenght = $('select'+category_selector+' option:selected').data('pwdLength'); -- 2.39.5