Browse Source

去掉POJO登录验证码必填,在验证码登录service验证

intex
bjang03 2 days ago
parent
commit
ce8c0fb3eb
  1. 2
      win-module-system/win-module-system-biz/src/main/java/com/win/module/system/service/auth/AdminAuthServiceImpl.java

2
win-module-system/win-module-system-biz/src/main/java/com/win/module/system/service/auth/AdminAuthServiceImpl.java

@ -151,7 +151,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
createLoginLog(null, username, LoginLogTypeEnum.LOGIN_USERNAME, LoginResultEnum.CAPTCHA_EXPIRE);
throw exception(AUTH_LOGIN_CAPTCHA_CODE_ERROR);
}
if (!code.equalsIgnoreCase(captcha)) {
if (!captcha.equalsIgnoreCase(code)) {
createLoginLog(null, username, LoginLogTypeEnum.LOGIN_USERNAME, LoginResultEnum.CAPTCHA_CODE_ERROR);
throw exception(AUTH_LOGIN_CAPTCHA_CODE_ERROR);
}

Loading…
Cancel
Save