From 26ac249c9e046e5acfe800833524c81efdf93143 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 20 Jan 2023 22:26:36 +0100 Subject: [PATCH] Fix #1487 Add a password length check and display an error, if the password is not at least 6 signs. Add html5 tag "minlength" to password input --- install.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install.php b/install.php index fa66707c..372bd96d 100644 --- a/install.php +++ b/install.php @@ -295,6 +295,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') ?>