Form fixes

This commit is contained in:
fbsanchez 2020-05-26 13:48:43 +02:00
parent e3803ac934
commit fae026a089
2 changed files with 17 additions and 15 deletions

View File

@ -318,15 +318,15 @@ function quickShellSettings()
); );
$gotty_host = get_parameter( $gotty_host = get_parameter(
'gotty_host', 'gotty_host',
$config['gotty_host'] ''
); );
$gotty_ssh_port = get_parameter( $gotty_ssh_port = get_parameter(
'gotty_ssh_port', 'gotty_ssh_port',
$config['gotty_ssh_port'] ''
); );
$gotty_telnet_port = get_parameter( $gotty_telnet_port = get_parameter(
'gotty_telnet_port', 'gotty_telnet_port',
$config['gotty_telnet_port'] ''
); );
$gotty_user = get_parameter( $gotty_user = get_parameter(

View File

@ -354,18 +354,6 @@ function config_update_config()
if (!config_update_value('email_password', io_input_password(get_parameter('email_password')))) { if (!config_update_value('email_password', io_input_password(get_parameter('email_password')))) {
$error_update[] = __('Email password'); $error_update[] = __('Email password');
} }
if (!config_update_value('ws_bind_address', get_parameter('ws_bind_address'))) {
$error_update[] = __('WebSocket bind address');
}
if (!config_update_value('ws_port', get_parameter('ws_port'))) {
$error_update[] = __('WebSocket port');
}
if (!config_update_value('ws_proxy_url', get_parameter('ws_proxy_url'))) {
$error_update[] = __('WebSocket proxy url');
}
break; break;
case 'enterprise': case 'enterprise':
@ -1599,6 +1587,20 @@ function config_update_config()
} }
break; break;
case 'websocket_engine':
if (!config_update_value('ws_bind_address', get_parameter('ws_bind_address'))) {
$error_update[] = __('WebSocket bind address');
}
if (!config_update_value('ws_port', get_parameter('ws_port'))) {
$error_update[] = __('WebSocket port');
}
if (!config_update_value('ws_proxy_url', get_parameter('ws_proxy_url'))) {
$error_update[] = __('WebSocket proxy url');
}
break;
default: default:
// Ignore. // Ignore.
break; break;