pyotp.random_base32() has increased their default output length

This commit is contained in:
Trent Palmer 2021-08-30 21:54:40 -07:00
parent cd30f4fe07
commit ffca5b3c27

View File

@ -18,7 +18,7 @@ class EmailWhiteList(UUIDAsIDModel):
class Account(UUIDAsIDModel): class Account(UUIDAsIDModel):
user = models.OneToOneField(User, on_delete=models.CASCADE, unique=True) 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) use_totp = models.BooleanField(default=False)
twitter_handle = models.CharField(max_length=64, default='@Twitter') twitter_handle = models.CharField(max_length=64, default='@Twitter')