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