From 255033d9f1162d3f4900076adc213333edc44e77 Mon Sep 17 00:00:00 2001 From: Victor Castellanos Date: Tue, 5 Apr 2022 11:03:39 -0500 Subject: [PATCH] Fix discrepancy between db and field length - Migration on commit e986b90fdcc926e41fdf658498b1a5cfd4580301 changes field to 16 characters but adding constant for the field reverted that change back in the model --- django_mfa/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_mfa/models.py b/django_mfa/models.py index c71f85f..67f86f4 100644 --- a/django_mfa/models.py +++ b/django_mfa/models.py @@ -22,7 +22,7 @@ def is_mfa_enabled(user): """ return hasattr(user, 'userotp') -MFA_RECOVERY_CODE_LENGTH = 10 +MFA_RECOVERY_CODE_LENGTH = 16 class UserRecoveryCodes(models.Model): user = models.ForeignKey(UserOTP, on_delete=models.CASCADE)