fix: Disable passkey mfa in safe mode

pull/15875/head
wangruidong 2025-08-19 18:15:50 +08:00 committed by 老广
parent 0c612648a0
commit 8c0cd20b48
1 changed files with 2 additions and 0 deletions

View File

@ -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