updated 2fa all user

This commit is contained in:
marcos 2020-11-26 18:11:30 +01:00
parent af863a45de
commit 1ce48c812f
2 changed files with 31 additions and 23 deletions

View File

@ -238,6 +238,13 @@ if (is_ajax()) {
$config['2FA_all_users'],
true
);
if (!$config['double_auth_enabled']) {
$table->rowclass['2FA_all_users'] = 'invisible';
} else {
$table->rowclass['2FA_all_users'] = '';
}
$table->data['2FA_all_users'] = $row;
@ -334,21 +341,18 @@ echo '</form>';
<script type="text/javascript">
function showAndHide() {
if ($('input[type=checkbox][name=double_auth_enabled]:checked').val() == 1) {
$('#table1-2FA_all_users').removeClass('invisible');
$('#table1-2FA_all_users-name').removeClass('invisible');
$('#table1-2FA_all_users-control').removeClass('invisible');
$('#table1-2FA_all_users').show();
} else {
$('#table1-2FA_all_users').hide();
}
}
$( document ).ready(function() {
var enbale = "<?php echo $config['double_auth_enabled']; ?>";
if (enbale == '1') {
$('#table1-2FA_all_users').show();
} else {
$('#table1-2FA_all_users').hide();
}
});
//For change autocreate remote users

View File

@ -691,6 +691,10 @@ select:-internal-list-box {
display: none;
}
.visible {
display: block;
}
div#page {
background: #fbfbfb;
background-image: none;