Commit 6468f0ba authored by 技术部-任文超's avatar 技术部-任文超

对未注册用户加账密校验计数器

parent 22b6919c
......@@ -535,15 +535,16 @@ public class UserController implements IBaseController {
return null;
}
LOGGER.info("用户正在登录... [{}]", credentialArr);
String userName = credentialArr[0];
String phoneNo = credentialArr[0];
String pass = credentialArr[1];
User user = userService.findByPhoneWithCache(userName);
User user = userService.findByPhoneWithCache(phoneNo);
if (user == null || !user.getEnable()) {
doErrorCount(phoneNo);
return null;
}
//验证密码
if (!validatePassword(pass, user.getPassword())) {
doErrorCount(userName);
doErrorCount(phoneNo);
return null;
}
return user;
......
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