소스 검색

Update functions.php

FusionPBX 5 년 전
부모
커밋
6a9977a026
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/functions.php

+ 2 - 2
resources/functions.php

@@ -895,8 +895,8 @@ function format_string ($format, $data) {
 		$password = '';
 		$password = '';
 		$chars = '';
 		$chars = '';
 		if ($length === 0 && $strength === 0) { //set length and strenth if specified in default settings and strength isn't numeric-only
 		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 >= 1) { $chars .= "0123456789"; }
 		if ($strength >= 2) { $chars .= "abcdefghijkmnopqrstuvwxyz"; }
 		if ($strength >= 2) { $chars .= "abcdefghijkmnopqrstuvwxyz"; }