mirror of https://github.com/jumpserver/jumpserver
[Update] 修改查看auth info可以关闭mfa
parent
a2f8f43321
commit
3a10fd4160
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue