diff --git a/install.php b/install.php index fa66707c..b7add87d 100644 --- a/install.php +++ b/install.php @@ -72,6 +72,9 @@ if (DEBUG_MODE) { // Security constant define('BLUDIT', true); +// Password length +define('PASSWORD_LENGTH', 6); + // Directory separator define('DS', DIRECTORY_SEPARATOR); @@ -295,6 +298,13 @@ function install($adminPassword, $timezone) date_default_timezone_set('UTC'); } + // Check the length of the password + if (Text::length($adminPassword)
+ +
+ p('The password needs to be contain at least ' . PASSWORD_LENGTH . ' signs') ?> +
+
p('Show password') ?>