mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-21 16:13:00 +00:00
fixup
This commit is contained in:
parent
9800c257de
commit
c4f6ef2c58
1 changed files with 3 additions and 1 deletions
|
@ -64,8 +64,10 @@ foreach($guiConfig as $key => $propertyData) {
|
|||
}
|
||||
}
|
||||
// Generate a random secret if it doesn't already exist
|
||||
if(!property_exists($settings, "secret"))
|
||||
if(!property_exists($settings, "secret")) {
|
||||
$settings->secret = bin2hex(random_bytes(16));
|
||||
$settings_upgraded = true;
|
||||
}
|
||||
if($settings_upgraded)
|
||||
file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT));
|
||||
|
||||
|
|
Loading…
Reference in a new issue