mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-23 16:39:30 +00:00
fix: Disable passkey mfa in safe mode
This commit is contained in:
parent
0c612648a0
commit
8c0cd20b48
@ -19,6 +19,8 @@ class MFAPasskey(BaseMFA):
|
||||
def is_active(self):
|
||||
if not self.is_authenticated():
|
||||
return True
|
||||
if settings.SAFE_MODE:
|
||||
return False
|
||||
return self.user.passkey_set.count()
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
Reference in New Issue
Block a user