Commit fda6bb53 by zt

修改

parent b8e6774e
......@@ -155,7 +155,6 @@ public class UserController {
LoginUserEntity userEntity = userService.findUserByLoginName(loginBean);
// 查询不到用户信息
if (userEntity == null) {
//todo ip username +1
if (StringUtils.isEmpty(redisUsername)) {
redisUtils.set(loginBean.getLoginName(), 1, indexDb);
redisUtils.expire(loginBean.getLoginName(), 360, indexDb);
......@@ -204,7 +203,6 @@ public class UserController {
if (passwordError) {
responseBean.setStatus(ErrorCode.STATUS_CODE_4103);
responseBean.setMessage("账户或密码错误");
//todo ip username +1
if (StringUtils.isEmpty(redisUsername)) {
redisUtils.set(loginBean.getLoginName(), 1, indexDb);
redisUtils.expire(loginBean.getLoginName(), 360, indexDb);
......@@ -247,7 +245,6 @@ public class UserController {
mobileVerifyService.updateVerifyCodeStatus(loginBean.getLoginName(), loginBean.getVerifyCode(), 1);
}
String clientip = StringUtils.isEmpty(loginBean.getClientip()) ? Util.getOnlineIP(request) : loginBean.getClientip();
//todo ip username 删除
redisUtils.del(loginBean.getLoginName(), indexDb);
redisUtils.del(userIp, indexDb);
UserLoginLogEntity deviceInfoEntity = new UserLoginLogEntity();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment