Merge branch 'ent-7031-Problemas-2FA' into 'develop'
Fixed forced 2FA Closes pandora_enterprise#7031 See merge request artica/pandorafms!3855
This commit is contained in:
commit
41ef1d41ff
|
@ -234,8 +234,8 @@ if (!$double_auth_enabled && $config['2FA_all_users'] != ''
|
|||
}
|
||||
});
|
||||
|
||||
$("div#doble_auth_window").dialog({
|
||||
<?php config_update_value('2Fa_auth', ''); ?>
|
||||
$("div#doble_auth_window").dialog({
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
modal: true,
|
||||
|
@ -247,12 +247,6 @@ if (!$double_auth_enabled && $config['2FA_all_users'] != ''
|
|||
width: 500,
|
||||
height: 400,
|
||||
close: function (event, ui) {
|
||||
|
||||
<?php
|
||||
if (!$double_auth_enabled) {
|
||||
config_update_value('2Fa_auth', '1');
|
||||
}
|
||||
?>
|
||||
// Abort the ajax request
|
||||
if (typeof request != 'undefined'){
|
||||
request.abort();
|
||||
|
@ -263,7 +257,11 @@ if (!$double_auth_enabled && $config['2FA_all_users'] != ''
|
|||
//document.location.reload();
|
||||
}
|
||||
})
|
||||
.show(); </script>
|
||||
.show();
|
||||
// Don't allow close the dialog with X button
|
||||
$('.ui-dialog-titlebar-close').css('display', 'none');
|
||||
|
||||
</script>
|
||||
<?php
|
||||
echo '</div>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue