Browse Source

Add files via upload

Daniele Bonini (皮夕): WebDev and DevOps by lots of Sim.pli.city bits 3 years ago
parent
commit
e1e6a0ff70
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Private/core/init.inc

+ 4 - 4
Private/core/init.inc

@@ -39,7 +39,10 @@ if (!file_exists(APP_DATA_PATH)) {
 }	
 if (!file_exists(APP_TEMPLATE_PATH)) {
   die("Template folder doesn't exist. You must have a tempate folder in your web app private path and configure it properly inside the config file.");
-}	
+}
+if (EDITOR_PASSWORD === "" || (strlen(EDITOR_PASSWORD) < 64)) {
+  die("Editor hashed password must be set (with a 64 chars min length). You must generate an editor password and configure it properly inside the config file.");
+}  
 if (!file_exists(APP_DATA_PATH . "/burger001-s.xml")) {
   // Generating data from the template..
 
@@ -69,9 +72,6 @@ if (!file_exists(APP_DATA_PATH . "/burger001-s.xml")) {
     }  
   }  
 }  
-if (EDITOR_PASSWORD === "" || (strlen(EDITOR_PASSWORD) < 6)) {
-  die("Editor password must be set (with a 6 chars min length). You must generate an editor password and configure it properly inside the config file.");
-}  
 
 require dirname(__DIR__) . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "const.inc";
 require dirname(__DIR__) . DIRECTORY_SEPARATOR . "functions" . DIRECTORY_SEPARATOR . "funct.inc";