Skip to content

Commit

Permalink
Add DISABLE_2FA config in base
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Apr 8, 2024
1 parent 3cfb099 commit 79c0bdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/objecttypes/conf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,6 @@
OIDC_AUTHENTICATE_CLASS = "mozilla_django_oidc_db.views.OIDCAuthenticationRequestView"
MOZILLA_DJANGO_OIDC_DB_CACHE = "oidc"
MOZILLA_DJANGO_OIDC_DB_CACHE_TIMEOUT = 5 * 60

if config("DISABLE_2FA", default=False): # pragma: no cover
MAYKIN_2FA_ALLOW_MFA_BYPASS_BACKENDS = AUTHENTICATION_BACKENDS

0 comments on commit 79c0bdc

Please sign in to comment.