update 用户登录 支持校验错误次数锁定登录

This commit is contained in:
疯狂的狮子li
2021-12-02 16:04:45 +08:00
parent 5322f5f707
commit e8ee5ad691
8 changed files with 62 additions and 23 deletions

View File

@ -83,6 +83,21 @@ public interface Constants {
*/
Integer CAPTCHA_EXPIRATION = 2;
/**
* 登陆错误 redis key
*/
String LOGIN_ERROR = "login_error:";
/**
* 登录错误次数
*/
Integer LOGIN_ERROR_NUMBER = 5;
/**
* 登录错误限制时间(分钟)
*/
Integer LOGIN_ERROR_LIMIT_TIME = 10;
/**
* 令牌
*/