From 7f74c625556d66df2c770b1a794aad8c3edfdc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sun, 12 Dec 2021 19:52:23 +0100 Subject: [PATCH] network smtp Champs de saisie obligatoire WIP --- core/module/config/config.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/module/config/config.php b/core/module/config/config.php index 19947fc2..9a3f7e58 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -487,12 +487,12 @@ class config extends common { ], 'smtp' => [ 'enable' => $this->getInput('smtpEnable',helper::FILTER_BOOLEAN), - 'host' => $this->getInput('smtpHost',helper::FILTER_STRING_SHORT), - 'port' => $this->getInput('smtpPort',helper::FILTER_INT), + 'host' => $this->getInput('smtpHost',helper::FILTER_STRING_SHORT,$this->getInput('smtpEnable',helper::FILTER_BOOLEAN)), + 'port' => $this->getInput('smtpPort',helper::FILTER_INT,$this->getInput('smtpEnable',helper::FILTER_BOOLEAN)), 'auth' => $this->getInput('smtpAuth',helper::FILTER_BOOLEAN), - 'secure' => $this->getInput('smtpSecure'), - 'username' => $this->getInput('smtpUsername',helper::FILTER_STRING_SHORT), - 'password' =>helper::encrypt($this->getData(['config','smtp','username']),$this->getInput('smtpPassword')), + 'secure' => $this->getInput('smtpSecure',helper::FILTER_BOOLEAN), + 'username' => $this->getInput('smtpUsername',helper::FILTER_STRING_SHORT,$this->getInput('smtpAuth',helper::FILTER_BOOLEAN)), + 'password' =>helper::encrypt($this->getData(['config','smtp','username']),$this->getInput('smtpPassword',$this->getInput('smtpAuth',helper::FILTER_BOOLEAN))), 'sender' => $this->getInput('smtpSender',helper::FILTER_MAIL) ], 'seo' => [