From ffca5b3c27d50a7a60f20585d86310c160df9205 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Mon, 30 Aug 2021 21:54:40 -0700 Subject: [PATCH] pyotp.random_base32() has increased their default output length --- accounts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/models.py b/accounts/models.py index b535545..e732ab2 100644 --- a/accounts/models.py +++ b/accounts/models.py @@ -18,7 +18,7 @@ class EmailWhiteList(UUIDAsIDModel): class Account(UUIDAsIDModel): user = models.OneToOneField(User, on_delete=models.CASCADE, unique=True) - totp_key = models.CharField(max_length=16, null=True) + totp_key = models.CharField(max_length=32, null=True) use_totp = models.BooleanField(default=False) twitter_handle = models.CharField(max_length=64, default='@Twitter')