Load hash salt from file if it exists

This commit is contained in:
Oliver Davies 2020-05-27 08:48:49 +01:00
parent eecefc49cd
commit 1347c93b96

View file

@ -266,7 +266,9 @@ $databases = [];
* $settings['hash_salt'] = file_get_contents('/home/example/salt.txt');
* @endcode
*/
$settings['hash_salt'] = '';
if (file_exists($app_root . '/../salt.txt')) {
$settings['hash_salt'] = file_get_contents($app_root . '/../salt.txt');
}
/**
* Deployment identifier.