From 53a0289b9b4399dbf9ba8d4ea91a14edaba076af Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 30 May 2020 12:17:54 +0200 Subject: [PATCH] =?UTF-8?q?logn=20brute=20force=20options=20par=20d=C3=A9f?= =?UTF-8?q?aut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/module/config/config.php | 8 +++----- core/module/install/ressource/defaultdata.php | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/core/core.php b/core/core.php index be86bc56..ceced9dc 100755 --- a/core/core.php +++ b/core/core.php @@ -1311,7 +1311,7 @@ class common { if ($this->getData(['core', 'dataVersion']) < 10200) { $this->deleteData(['admin','colorButtonText']); $this->setData(['config', 'connect', 'attempt',3]); - $this->setData(['config', 'connect', 'timeout',360]); + $this->setData(['config', 'connect', 'timeout',600]); $this->setData(['config', 'connect', 'log',false]); $this->setData(['core', 'dataVersion', 10200]); } diff --git a/core/module/config/config.php b/core/module/config/config.php index 944dcb36..f5ab9fc1 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -177,11 +177,9 @@ class config extends common { // Sécurité de la connexion - durée du blocage public static $connectTimeout = [ 0 => 'Aucun', - 120 => '2 minutes', - 240 => '4 minutes', - 360 => '6 minutes', - 480 => '8 minutes', - 600 => '10 minutes' + 300 => '5 minutes', + 600 => '10 minutes', + 900 => '15 minutes' ]; public function generateFiles() { // Mettre à jour le site map diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index a45bdfb7..a0225f0c 100755 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -30,7 +30,7 @@ class init extends common { 'enable' => false, ], "connect" => [ - "timeout" => 360, + "timeout" => 600, "attempt" => 3, 'log' => false ]