Fix double authentication check in meta authentication setup

Former-commit-id: 37fea3368898f58fafda9c485b93bf07c8ad81fa
This commit is contained in:
alejandro-campos 2019-02-19 13:13:13 +01:00
parent c16fb1696d
commit 2e78012e40
1 changed files with 2 additions and 1 deletions

View File

@ -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