diff --git a/apps/assets/templates/assets/_asset_user_list.html b/apps/assets/templates/assets/_asset_user_list.html index 0d7c86be3..3321e2578 100644 --- a/apps/assets/templates/assets/_asset_user_list.html +++ b/apps/assets/templates/assets/_asset_user_list.html @@ -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 }