From af863a45dead97c768c816a55bb33108899a6237 Mon Sep 17 00:00:00 2001 From: marcos Date: Thu, 26 Nov 2020 16:25:21 +0100 Subject: [PATCH] updates --- pandora_console/godmode/setup/setup_auth.php | 25 ++++++++++---------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pandora_console/godmode/setup/setup_auth.php b/pandora_console/godmode/setup/setup_auth.php index f76d9b44d0..4756824968 100644 --- a/pandora_console/godmode/setup/setup_auth.php +++ b/pandora_console/godmode/setup/setup_auth.php @@ -229,16 +229,17 @@ if (is_ajax()) { // Enable 2FA for all users. // Set default value. - set_unless_defined($config['2FA_all_users'], false); - $row = []; - $row['name'] = __('Force 2FA for all users is enabled'); - $row['control'] .= html_print_checkbox_switch( - '2FA_all_users', - 1, - $config['2FA_all_users'], - true - ); - $table->data['2FA_all_users'] = $row; + set_unless_defined($config['2FA_all_users'], false); + $row = []; + $row['name'] = __('Force 2FA for all users is enabled'); + $row['control'] .= html_print_checkbox_switch( + '2FA_all_users', + 1, + $config['2FA_all_users'], + true + ); + $table->data['2FA_all_users'] = $row; + // Session timeout. // Default session timeout. @@ -342,12 +343,12 @@ function showAndHide() { } } $( document ).ready(function() { - if ($('#checkbox-double_auth_enabled').prop('checked') == true) { + var enbale = ""; + if (enbale == '1') { $('#table1-2FA_all_users').show(); } else { $('#table1-2FA_all_users').hide(); } - }); //For change autocreate remote users