Added encryption select in enterprise setup
This commit is contained in:
parent
3188bf1b0b
commit
67a17679e3
|
@ -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')))
|
||||||
|
@ -1227,6 +1229,10 @@ function config_process_config () {
|
||||||
if (!isset ($config['email_smtpPort'])) {
|
if (!isset ($config['email_smtpPort'])) {
|
||||||
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', "");
|
||||||
|
|
Loading…
Reference in New Issue