User password validation missing at installer #888

This commit is contained in:
Ulrich Block 2016-06-27 11:41:49 +02:00
parent 2f8da0d793
commit 28c0175d54

View File

@ -483,7 +483,7 @@ if ($currentStep == 6 and count($systemCheckError) == 0) {
if (isset($_POST['passw1'])) {
if ($_POST['passw1'] != $_POST['passw2']) {
if ($_POST['passw1'] != $_POST['passw2'] or preg_match('/^[\w\S]{6,120}$/', $_POST['passw1'])) {
$displayToUser .= "<div class='alert alert-danger'>{$languageObject->error_password}</div>";
}
@ -561,7 +561,6 @@ if ($currentStep == 6 and count($systemCheckError) == 0) {
$systemCheckError['tables_repair.php'] = "<div class='alert alert-danger'>{$error->getMessage()}</div>";
}
}
}