diff --git a/pandora_console/godmode/setup/setup_auth.php b/pandora_console/godmode/setup/setup_auth.php index e8c4ccbfad..b97f857a37 100644 --- a/pandora_console/godmode/setup/setup_auth.php +++ b/pandora_console/godmode/setup/setup_auth.php @@ -334,17 +334,20 @@ echo ''; $( document ).ready(function() { //For change autocreate remote users - $('input[type=checkbox][name=double_auth_enabled]').change(function () { - if ($('input[type=checkbox][name=double_auth_enabled]:checked').val() == 1) { - $('#table1-2FA_all_users').show(); - } - else { - $('#table1-2FA_all_users').hide(); - $('input[type=checkbox][name=2FA_all_users][value=0]').prop('checked', false); - } + $('input[type=checkbox][name=double_auth_enabled]').change(function () { + if ($('input[type=checkbox][name=double_auth_enabled]:checked').val() == 1) { + $('#table1-2FA_all_users').show(); + $('#table3-2FA_all_users').show(); + $('#table5-2FA_all_users').show(); + } + else { + $('input[type=checkbox][name=2FA_all_users][value=1]').prop('checked', false); + $('#table1-2FA_all_users').hide(); + $('#table3-2FA_all_users').hide(); + $('#table5-2FA_all_users').hide(); + } }).change(); - }); - + }); $('#auth').on('change', function(){ type_auth = $('#auth').val(); $.ajax({