Incorrect password gets rejected at installer #901

This commit is contained in:
Ulrich Block 2016-07-22 16:45:31 +02:00
parent 9cf9f17115
commit b26c42aee3

View File

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