[Update] 修改查看auth info可以关闭mfa

pull/3366/head
ibuler 2019-10-22 12:16:50 +08:00
parent a2f8f43321
commit 3a10fd4160
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ var prefer = null;
var lastMFATime = "{{ request.session.MFA_VERIFY_TIME }}";
var testDatetime = "{% trans 'Test datetime: ' %}";
var mfaVerifyTTL = "{{ SECURITY_MFA_VERIFY_TTL }}";
var mfaNeedCheck = "{{ SECURITY_VIEW_AUTH_NEED_MFA }}";
var mfaNeedCheck = "{{ SECURITY_VIEW_AUTH_NEED_MFA }}" === "True";
function initAssetUserTable() {
var options = {
@ -113,7 +113,7 @@ $(document).ready(function(){
authAssetId = $(this).data("asset") ;
authHostname = $(this).data("hostname");
authUsername = $(this).data('user');
if (mfaNeedCheck !== 'True') {
if (!mfaNeedCheck){
$("#asset_user_auth_view").modal('show');
return
}