Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@
# https://docs.allauth.org
# https://docs.allauth.org/en/latest/account/advanced.html#custom-user-models
# https://docs.allauth.org/en/latest/mfa/introduction.html
# https://docs.allauth.org/en/latest/mfa/configuration.html
# --------------------------------------------------------------------------
ACCOUNT_ADAPTER = "adserver.auth.adapters.AdServerAccountAdapter"
ACCOUNT_USER_MODEL_USERNAME_FIELD = None
Expand All @@ -393,6 +394,9 @@
ACCOUNT_LOGIN_ON_PASSWORD_RESET = True
ACCOUNT_MAX_EMAIL_ADDRESSES = 1
ACCOUNT_LOGIN_METHODS = {"email"}
# Allow this many codes before or after to be valid.
# MFA_TOTP_PERIOD (30s) of clock drift in either direction allowed.
MFA_TOTP_TOLERANCE = 1


# Celery settings for asynchronous tasks
Expand Down