| | |
| | | count = RedisUtil.get(checkPrefix + userNameOrMobile); |
| | | } |
| | | if(count > TIMES_CHECK_INPUT_PASSWORD_NUM){ |
| | | throw new YamiShopBindException("密码输入错误十次,已限制登录30分钟"); |
| | | throw new YamiShopBindException("Too many failed login attempts, login restricted for 30 minutes"); |
| | | } |
| | | // 半小时后失效 |
| | | RedisUtil.set(checkPrefix + userNameOrMobile,count,1800); |
| | |
| | | count++; |
| | | // 半小时后失效 |
| | | RedisUtil.set(checkPrefix + userNameOrMobile,count,1800); |
| | | throw new YamiShopBindException("账号或密码不正确"); |
| | | throw new YamiShopBindException("Incorrect username or password"); |
| | | } |
| | | } |
| | | } |