Update security.php
This commit is contained in:
parent
722ae2eb41
commit
2cad20a2ff
|
@ -199,9 +199,11 @@ if(!function_exists("get_salt")) {
|
||||||
function get_salt() {
|
function get_salt() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
$salt = "H6hclwzFplRQw39C";
|
$salt = "";
|
||||||
if(!array_key_empty("salt", $config)) {
|
if(!array_key_empty("salt", $config)) {
|
||||||
$salt = $config['salt'];
|
$salt = $config['salt'];
|
||||||
|
} else {
|
||||||
|
$salt = make_random_id(16);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $salt;
|
return $salt;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user