mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
updated 2fa all user
This commit is contained in:
parent
af863a45de
commit
1ce48c812f
@ -238,6 +238,13 @@ if (is_ajax()) {
|
|||||||
$config['2FA_all_users'],
|
$config['2FA_all_users'],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!$config['double_auth_enabled']) {
|
||||||
|
$table->rowclass['2FA_all_users'] = 'invisible';
|
||||||
|
} else {
|
||||||
|
$table->rowclass['2FA_all_users'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
$table->data['2FA_all_users'] = $row;
|
$table->data['2FA_all_users'] = $row;
|
||||||
|
|
||||||
|
|
||||||
@ -334,21 +341,18 @@ echo '</form>';
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function showAndHide() {
|
||||||
function showAndHide() {
|
|
||||||
if ($('input[type=checkbox][name=double_auth_enabled]:checked').val() == 1) {
|
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();
|
$('#table1-2FA_all_users').show();
|
||||||
} else {
|
} else {
|
||||||
$('#table1-2FA_all_users').hide();
|
$('#table1-2FA_all_users').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$( document ).ready(function() {
|
$( 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
|
//For change autocreate remote users
|
||||||
|
|
||||||
|
@ -691,6 +691,10 @@ select:-internal-list-box {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.visible {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
div#page {
|
div#page {
|
||||||
background: #fbfbfb;
|
background: #fbfbfb;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user