From 1b97a52cedf42e889acb35fcf1aacef982c6683d Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 30 Oct 2021 17:40:18 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9placement=20captchaStrong?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/include/update.inc.php | 9 ++++++++- core/module/install/ressource/defaultdata.php | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index fcdf367a..6cfd3502 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -670,4 +670,11 @@ if ($this->getData(['core', 'dataVersion']) < 11100) { $this->setData(['theme', 'menu', 'burgerLogo', '']); $this->setData(['core', 'dataVersion', 11100]); -} \ No newline at end of file +} + +// Version 11.2.00 +if ($this->getData(['core', 'dataVersion']) < 11200) { + // Déplacer la valeur captcha + $this->setData(['config', 'connect', 'captchaStrong', $this->getData(['config', 'captchaStrong'])]); + $this->setData(['core', 'dataVersion', 11200]); +} diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 5acdb0ec..e7f44552 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -10,7 +10,6 @@ class init extends common { 'favicon' => 'favicon.ico', 'faviconDark' => 'faviconDark.ico', 'maintenance' => false, - 'captchaStrong' => false, 'social' => [ 'facebookId' => 'facebook', 'instagramId' => '', @@ -35,7 +34,8 @@ class init extends common { 'attempt' => 3, 'log' => false, 'anonymousIp' => 2, - 'captcha' => true + 'captcha' => true, + 'captchaStrong' => false, ], 'i18n' => [ 'enable'=> true, @@ -53,7 +53,7 @@ class init extends common { ] ], 'core' => [ - 'dataVersion' => 11100, + 'dataVersion' => 11200, 'lastBackup' => 0, 'lastClearTmp' => 0, 'lastAutoUpdate' => 0,