1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-10-09 14:14:03 +00:00
This commit is contained in:
Starbeamrainbowlabs 2024-08-19 22:20:48 +01:00
parent 9800c257de
commit c4f6ef2c58
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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));