diff --git a/.gitignore b/.gitignore index b0ec503e..f88a10e6 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ bl-themes/massively bl-themes/hyperspace bl-themes/striped bl-themes/log +bl-themes/micro \ No newline at end of file diff --git a/install.php b/install.php index 6d31d996..84a3659d 100644 --- a/install.php +++ b/install.php @@ -423,7 +423,6 @@ function install($adminPassword, $timezone) 'tokenAuthTTL'=>'2009-03-15 14:00', 'twitter'=>'', 'facebook'=>'', - 'googlePlus'=>'', 'instagram'=>'', 'codepen'=>'', 'linkedin'=>'', @@ -565,8 +564,13 @@ if (isset($_GET['demo'])) { // Install by POST method if ($_SERVER['REQUEST_METHOD'] == 'POST') { - install($_POST['password'], $_POST['timezone']); - redirect(HTML_PATH_ROOT); + if (Text::length($_POST['password'])<6) { + $errorText = $L->g('password-must-be-at-least-6-characters-long'); + error_log('[ERROR] '.$errorText, 0); + } else { + install($_POST['password'], $_POST['timezone']); + redirect(HTML_PATH_ROOT); + } } ?> @@ -615,6 +619,10 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { ?>

get('choose-a-password-for-the-user-admin') ?>

+ +
+ +