Sécurité connexion options par défaut

This commit is contained in:
Fred Tempez 2020-05-29 08:24:32 +02:00
parent 0d68f00710
commit 4c29d94246
4 changed files with 60 additions and 54 deletions

View File

@ -1311,7 +1311,7 @@ class common {
if ($this->getData(['core', 'dataVersion']) < 10200) { if ($this->getData(['core', 'dataVersion']) < 10200) {
$this->deleteData(['admin','colorButtonText']); $this->deleteData(['admin','colorButtonText']);
$this->setData(['config', 'connect', 'attempt',3]); $this->setData(['config', 'connect', 'attempt',3]);
$this->setData(['config', 'connect', 'timeout',10]); $this->setData(['config', 'connect', 'timeout',360]);
$this->setData(['core', 'dataVersion', 10200]); $this->setData(['core', 'dataVersion', 10200]);
} }
} }

View File

@ -286,6 +286,27 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Connexion</h4>
<div class="row">
<div class="col4">
<?php echo template::select('configConnectAttempt', $module::$connectAttempt , [
'label' => 'Echecs avant blocage',
'selected' => $this->getData(['config', 'connect', 'attempt'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('configConnectTimeout', $module::$connectTimeout , [
'label' => 'Durée du blocage',
'selected' => $this->getData(['config', 'connect', 'timeout'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">
@ -348,28 +369,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Connexion</h4>
<div class="row">
<div class="col4">
<?php echo template::select('configConnectAttempt', $module::$connectAttempt , [
'label' => 'Echecs avant blocage',
'selected' => $this->getData(['config', 'connect', 'attempt'])
]); ?>
</div>
<div class="col4">
<?php echo template::select('configConnectTimeout', $module::$connectTimeout , [
'label' => 'Durée du blocage',
'selected' => $this->getData(['config', 'connect', 'timeout'])
]); ?>
</div>
</div>
</div>
</div>
</div>
<div class="row"> <div class="row">
<div class="col12"> <div class="col12">
<div class="block"> <div class="block">

View File

@ -25,7 +25,14 @@ class init extends common {
'title' => 'Votre site en quelques clics !', 'title' => 'Votre site en quelques clics !',
'proxyUrl' => "", 'proxyUrl' => "",
'proxyPort' => "", 'proxyPort' => "",
'proxyType' => "tcp://" 'proxyType' => "tcp://",
'smtp' => [
'enable' => false,
],
"connect" => [
"timeout" => 360,
"attempt" => 3
]
], ],
'core' => [ 'core' => [
'dataVersion' => 10000, 'dataVersion' => 10000,