From 042b114e24da8ee1ec90af8115a361dd2563cbfe Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Sun, 27 Oct 2019 23:53:18 +0100 Subject: [PATCH] fix #15491 Generate password complexity setting Add symbols to possible characters for suggested passwords to have a chance to match the default value of validate_password_special_char_count when validate_password_policy is set to MEDIUM or higher. Signed-off-by: Hugues Peccatte --- js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/functions.js b/js/functions.js index 2de39e2735..9fda6d38d7 100644 --- a/js/functions.js +++ b/js/functions.js @@ -483,7 +483,7 @@ Functions.suggestPassword = function (passwordForm) { // restrict the password to just letters and numbers to avoid problems: // "editors and viewers regard the password as multiple words and // things like double click no longer work" - var pwchars = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWYXZ'; + var pwchars = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWYXZ@!_.*/()[]-'; var passwordlength = 16; // do we want that to be dynamic? no, keep it simple :) var passwd = passwordForm.generated_pw; var randomWords = new Int32Array(passwordlength);