mirror of https://github.com/jumpserver/jumpserver
fix: Disable passkey mfa in safe mode
parent
0c612648a0
commit
8c0cd20b48
|
@ -19,6 +19,8 @@ class MFAPasskey(BaseMFA):
|
||||||
def is_active(self):
|
def is_active(self):
|
||||||
if not self.is_authenticated():
|
if not self.is_authenticated():
|
||||||
return True
|
return True
|
||||||
|
if settings.SAFE_MODE:
|
||||||
|
return False
|
||||||
return self.user.passkey_set.count()
|
return self.user.passkey_set.count()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue