network smtp Champs de saisie obligatoire WIP
This commit is contained in:
parent
095e0770d9
commit
7f74c62555
@ -487,12 +487,12 @@ class config extends common {
|
|||||||
],
|
],
|
||||||
'smtp' => [
|
'smtp' => [
|
||||||
'enable' => $this->getInput('smtpEnable',helper::FILTER_BOOLEAN),
|
'enable' => $this->getInput('smtpEnable',helper::FILTER_BOOLEAN),
|
||||||
'host' => $this->getInput('smtpHost',helper::FILTER_STRING_SHORT),
|
'host' => $this->getInput('smtpHost',helper::FILTER_STRING_SHORT,$this->getInput('smtpEnable',helper::FILTER_BOOLEAN)),
|
||||||
'port' => $this->getInput('smtpPort',helper::FILTER_INT),
|
'port' => $this->getInput('smtpPort',helper::FILTER_INT,$this->getInput('smtpEnable',helper::FILTER_BOOLEAN)),
|
||||||
'auth' => $this->getInput('smtpAuth',helper::FILTER_BOOLEAN),
|
'auth' => $this->getInput('smtpAuth',helper::FILTER_BOOLEAN),
|
||||||
'secure' => $this->getInput('smtpSecure'),
|
'secure' => $this->getInput('smtpSecure',helper::FILTER_BOOLEAN),
|
||||||
'username' => $this->getInput('smtpUsername',helper::FILTER_STRING_SHORT),
|
'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')),
|
'password' =>helper::encrypt($this->getData(['config','smtp','username']),$this->getInput('smtpPassword',$this->getInput('smtpAuth',helper::FILTER_BOOLEAN))),
|
||||||
'sender' => $this->getInput('smtpSender',helper::FILTER_MAIL)
|
'sender' => $this->getInput('smtpSender',helper::FILTER_MAIL)
|
||||||
],
|
],
|
||||||
'seo' => [
|
'seo' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user