登录强制使用验证码

This commit is contained in:
virusdefender
2015-10-09 16:59:49 +08:00
parent 61fd72ebae
commit 1fc098b093
4 changed files with 17 additions and 65 deletions

View File

@@ -38,8 +38,6 @@ class User(AbstractBaseUser):
reset_password_token = models.CharField(max_length=40, blank=True, null=True)
# token 生成时间
reset_password_token_create_time = models.DateTimeField(blank=True, null=True)
# user 登陆失败的次数计数器。每次密码错误就增加3而登陆成功一次减去1在这个计时器大于0的时候需要输入验证码
login_failed_counter = models.IntegerField(default=0)
USERNAME_FIELD = 'username'
REQUIRED_FIELDS = []