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', ''); ?>
|
<?php config_update_value('2Fa_auth', ''); ?>
|
||||||
|
$("div#doble_auth_window").dialog({
|
||||||
resizable: true,
|
resizable: true,
|
||||||
draggable: true,
|
draggable: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
|
@ -247,12 +247,6 @@ if (!$double_auth_enabled && $config['2FA_all_users'] != ''
|
||||||
width: 500,
|
width: 500,
|
||||||
height: 400,
|
height: 400,
|
||||||
close: function (event, ui) {
|
close: function (event, ui) {
|
||||||
|
|
||||||
<?php
|
|
||||||
if (!$double_auth_enabled) {
|
|
||||||
config_update_value('2Fa_auth', '1');
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
// Abort the ajax request
|
// Abort the ajax request
|
||||||
if (typeof request != 'undefined'){
|
if (typeof request != 'undefined'){
|
||||||
request.abort();
|
request.abort();
|
||||||
|
@ -263,7 +257,11 @@ if (!$double_auth_enabled && $config['2FA_all_users'] != ''
|
||||||
//document.location.reload();
|
//document.location.reload();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.show(); </script>
|
.show();
|
||||||
|
// Don't allow close the dialog with X button
|
||||||
|
$('.ui-dialog-titlebar-close').css('display', 'none');
|
||||||
|
|
||||||
|
</script>
|
||||||
<?php
|
<?php
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue