[Bug 12617] Koha should let admins to configure automatically generated password complexity/difficulty
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12617 --- Comment #20 from David Cook <dcook@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.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org