修复两步验证中的错误

This commit is contained in:
virusdefender
2015-12-12 21:40:04 +08:00
parent c93d7a5fbc
commit c035971908
3 changed files with 22 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class User(AbstractBaseUser):
auth_token = models.CharField(max_length=40, blank=True, null=True)
# 是否开启两步验证
two_factor_auth = models.BooleanField(default=False)
tfa_token = models.CharField(max_length=10, blank=True, null=True)
tfa_token = models.CharField(max_length=40, blank=True, null=True)
USERNAME_FIELD = 'username'
REQUIRED_FIELDS = []