mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
updates
This commit is contained in:
parent
c824972c8c
commit
af863a45de
@ -229,16 +229,17 @@ if (is_ajax()) {
|
|||||||
|
|
||||||
// Enable 2FA for all users.
|
// Enable 2FA for all users.
|
||||||
// Set default value.
|
// Set default value.
|
||||||
set_unless_defined($config['2FA_all_users'], false);
|
set_unless_defined($config['2FA_all_users'], false);
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('Force 2FA for all users is enabled');
|
$row['name'] = __('Force 2FA for all users is enabled');
|
||||||
$row['control'] .= html_print_checkbox_switch(
|
$row['control'] .= html_print_checkbox_switch(
|
||||||
'2FA_all_users',
|
'2FA_all_users',
|
||||||
1,
|
1,
|
||||||
$config['2FA_all_users'],
|
$config['2FA_all_users'],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
$table->data['2FA_all_users'] = $row;
|
$table->data['2FA_all_users'] = $row;
|
||||||
|
|
||||||
|
|
||||||
// Session timeout.
|
// Session timeout.
|
||||||
// Default session timeout.
|
// Default session timeout.
|
||||||
@ -342,12 +343,12 @@ function showAndHide() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
if ($('#checkbox-double_auth_enabled').prop('checked') == true) {
|
var enbale = "<?php echo $config['double_auth_enabled']; ?>";
|
||||||
|
if (enbale == '1') {
|
||||||
$('#table1-2FA_all_users').show();
|
$('#table1-2FA_all_users').show();
|
||||||
} else {
|
} else {
|
||||||
$('#table1-2FA_all_users').hide();
|
$('#table1-2FA_all_users').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
//For change autocreate remote users
|
//For change autocreate remote users
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user