mirror of https://github.com/jumpserver/jumpserver
parent
0e6dbb3e5d
commit
06375110b9
|
@ -8,7 +8,7 @@ class ConfirmMFA(BaseConfirm):
|
||||||
display_name = 'MFA'
|
display_name = 'MFA'
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
return self.user.active_mfa_backends
|
return self.user.active_mfa_backends and self.user.mfa_enabled
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def content(self):
|
def content(self):
|
||||||
|
|
Loading…
Reference in New Issue