diff --git a/pandora_console/godmode/setup/setup_auth.php b/pandora_console/godmode/setup/setup_auth.php
index 4d5eeb07ff..3ff5cb305b 100644
--- a/pandora_console/godmode/setup/setup_auth.php
+++ b/pandora_console/godmode/setup/setup_auth.php
@@ -134,7 +134,8 @@ if (is_ajax()) {
set_unless_defined($config['double_auth_enabled'], false);
$row = [];
$row['name'] = __('Double authentication').ui_print_help_tip(__('If this option is enabled, the users can use double authentication with their accounts'), true);
- $row['control'] = html_print_checkbox_toogle_switch('double_auth_enabled', 1, $config['double_auth_enabled'], true);
+ $row['control'] = html_print_input_hidden('double_auth_enabled', 0);
+ $row['control'] .= html_print_checkbox_toogle_switch('double_auth_enabled', 1, $config['double_auth_enabled'], true);
$table->data['double_auth_enabled'] = $row;
// Session timeout
diff --git a/pandora_console/operation/users/user_edit.php b/pandora_console/operation/users/user_edit.php
index 1552f2f57c..802ab0bf6c 100644
--- a/pandora_console/operation/users/user_edit.php
+++ b/pandora_console/operation/users/user_edit.php
@@ -390,10 +390,13 @@ $table->data[] = $data;
// Double auth
$double_auth_enabled = (bool) db_get_value('id', 'tuser_double_auth', 'id_user', $config['id_user']);
-$data = [];
-$data[0] = ''.__('Double authentication').'';
-$data[0] .= $jump;
-$data[0] .= ''.html_print_checkbox('double_auth', 1, $double_auth_enabled, true).'';
+$data = array();
+if ($config['double_auth_enabled']) {
+ $data[0] = ''.__('Double authentication').'';
+ $data[0] .= $jump;
+ $data[0] .= ''.html_print_checkbox('double_auth', 1, $double_auth_enabled, true).'';
+}
+
if ($double_auth_enabled) {
$data[0] .= $jump;
$data[0] .= html_print_button(__('Show information'), 'show_info', false, 'javascript:show_double_auth_info();', '', true);