From 898a5dc60376f2babb40a5b59fa36c31a2f47fd0 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 26 Mar 2020 11:57:51 -0600 Subject: [PATCH] Update functions.php --- resources/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 163e133646..f6e6429f23 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -895,8 +895,8 @@ function format_string ($format, $data) { $password = ''; $chars = ''; if ($length === 0 && $strength === 0) { //set length and strenth if specified in default settings and strength isn't numeric-only - $length = (is_numeric($_SESSION["extension"]["password_length"]["numeric"])) ? $_SESSION["extension"]["password_length"]["numeric"] : 10; - $strength = (is_numeric($_SESSION["extension"]["password_strength"]["numeric"])) ? $_SESSION["extension"]["password_strength"]["numeric"] : 4; + $length = (is_numeric($_SESSION["users"]["password_length"]["numeric"])) ? $_SESSION["users"]["password_length"]["numeric"] : 20; + $strength = (is_numeric($_SESSION["users"]["password_strength"]["numeric"])) ? $_SESSION["users"]["password_strength"]["numeric"] : 4; } if ($strength >= 1) { $chars .= "0123456789"; } if ($strength >= 2) { $chars .= "abcdefghijkmnopqrstuvwxyz"; }