summaryrefslogtreecommitdiff
path: root/www/setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/setup.php')
-rw-r--r--www/setup.php4
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);