[Koha-bugs] [Bug 12617] Koha should let admins to configure automatically generated password complexity/difficulty
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Sep 30 02:38:55 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12617
--- Comment #20 from David Cook <dcook at prosentient.com.au> ---
Ok because I'm insufferable...
The following passes:
<html>
<head>
<script>
var min_lenght = 3;
var regex_text =
"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&*(){}[\\]<>?/|\-]).{"+min_lenght+",}";
var pattern_regex = new RegExp(regex_text);
var output = pattern_regex.test("Aa1!");
alert(output);
</script>
</head>
</html>
The following fails:
<html>
<head>
<script>
var min_lenght = 3;
var regex_text =
"(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&*(){}[\\]<>?/|\-]).{"+min_lenght+",}";
var pattern_regex = new RegExp(regex_text);
var output = pattern_regex.test("Ää1!");
alert(output);
</script>
</head>
</html>
That's not good.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list