Added encryption select in enterprise setup

This commit is contained in:
Daniel Maya 2017-10-02 15:40:10 +02:00
parent 3188bf1b0b
commit 67a17679e3
1 changed files with 6 additions and 0 deletions

View File

@ -260,6 +260,8 @@ function config_update_config () {
$error_update[] = __('Server SMTP'); $error_update[] = __('Server SMTP');
if (!config_update_value ('email_smtpPort', (int)get_parameter('email_smtpPort'))) if (!config_update_value ('email_smtpPort', (int)get_parameter('email_smtpPort')))
$error_update[] = __('Port SMTP'); $error_update[] = __('Port SMTP');
if (!config_update_value ('email_encryption', get_parameter('email_encryption')))
$error_update[] = __('Encryption');
if (!config_update_value ('email_username', get_parameter('email_username'))) if (!config_update_value ('email_username', get_parameter('email_username')))
$error_update[] = __('Email user'); $error_update[] = __('Email user');
if (!config_update_value ('email_password', get_parameter('email_password'))) if (!config_update_value ('email_password', get_parameter('email_password')))
@ -1228,6 +1230,10 @@ function config_process_config () {
config_update_value ( 'email_smtpPort', 25); config_update_value ( 'email_smtpPort', 25);
} }
if (!isset ($config['email_encryption'])) {
config_update_value ( 'email_encryption', 0);
}
if (!isset ($config['email_username'])) { if (!isset ($config['email_username'])) {
config_update_value ( 'email_username', ""); config_update_value ( 'email_username', "");
} }