diff options
| author | Horus3 | 2014-03-12 03:02:23 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-12 03:02:23 +0100 |
| commit | bdb10afe9dd0659bca3034d41be7b1550cb7aad5 (patch) | |
| tree | 2686e8089a30b6efcac7802e313fef0c8234b99a /www/setup.php | |
| parent | 8970954933ecf4b5c842027faa7c52f85cc25fe2 (diff) | |
| download | files.iamfabulous.de-bdb10afe9dd0659bca3034d41be7b1550cb7aad5.tar.gz | |
Forgot ';' and added security check for pepper
Diffstat (limited to 'www/setup.php')
| -rw-r--r-- | www/setup.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/setup.php b/www/setup.php index 1effda5..ea56795 100644 --- a/www/setup.php +++ b/www/setup.php @@ -30,6 +30,10 @@ if($bool){ $cleartext_password="password"; $email="admin@iamfabulous.de"; $pepper = file_get_contents("../database/pepper.txt"); + if(!isset($pepper)){ + echo "There is no pepper in '../database/pepper.txt'! <br> Please generate one manually and run this script again."; + exit; + } $password = $cleartext_password . $pepper; $hash_password = password_hash($password, PASSWORD_DEFAULT); |
