mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
User password validation missing at installer #888
This commit is contained in:
parent
2f8da0d793
commit
28c0175d54
@ -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>";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user