diff --git a/apps/authentication/mfa/passkey.py b/apps/authentication/mfa/passkey.py index 572d3d859..6756ef199 100644 --- a/apps/authentication/mfa/passkey.py +++ b/apps/authentication/mfa/passkey.py @@ -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