Skip to content

Commit

Permalink
Set MFA TOTP valid window to one before and after
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Sep 5, 2024
1 parent a37750e commit 6fda3fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions froide/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def MFA_DOMAIN(self):
def MFA_SITE_TITLE(self):
return self.SITE_NAME

# Valid TOTP windows before and after, see https://pyauth.github.io/pyotp/#pyotp.totp.TOTP.verify
MFA_TOTP_VALID_WINDOW = 1

SITE_ID = values.IntegerValue(1)

ADMINS = (
Expand Down

0 comments on commit 6fda3fa

Please sign in to comment.