|
@@ -113,8 +113,6 @@ public class AuthServiceImpl implements AuthService {
|
|
|
String password = loginInfo.getPassword();
|
|
|
String clientIp = loginInfo.getClientIp();
|
|
|
String smsCode = loginInfo.getSmsCode();
|
|
|
- String sessionId = loginInfo.getSessionId();
|
|
|
- String imgCode = loginInfo.getImgCode();
|
|
|
|
|
|
if (StringUtils.isBlank(accountType)) {
|
|
|
throw new StatusException("003201", "accountType is null");
|
|
@@ -142,12 +140,7 @@ public class AuthServiceImpl implements AuthService {
|
|
|
}
|
|
|
|
|
|
Integer errorTimes = getLoginErrorTimes(accountTypeEnum, accountValue, clientIp);
|
|
|
- if (StringUtils.isNotBlank(sessionId) && StringUtils.isNotBlank(imgCode)) {
|
|
|
- String rightImgCode = redisClient.get("$_IMG_" + sessionId, String.class);
|
|
|
- if (null == rightImgCode || !rightImgCode.equalsIgnoreCase(imgCode)) {
|
|
|
- throw new StatusException("003303", "验证码错误");
|
|
|
- }
|
|
|
- } else if (5 < errorTimes) {
|
|
|
+ if (5 < errorTimes) {
|
|
|
throw new StatusException("003205", "登陆失败次数已达到上限,请5分钟后重试");
|
|
|
}
|
|
|
|