feat(sso): 登录接口改为校验图形验证码

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
liulujian 2026-04-15 15:50:57 +08:00
parent 460ba0d969
commit 57337d9e73

View File

@ -112,7 +112,11 @@ public class AuthServiceImpl implements AuthService {
@Override @Override
public AuthLoginRespVO login(AuthLoginReqVO reqVO) { public AuthLoginRespVO login(AuthLoginReqVO reqVO) {
final Boolean checked = verifyService.checkVerifyToken(reqVO.getCaptchaVerification()); // 校验图形验证码
final Boolean checked = verifyService.checkCaptcha(
reqVO.getCaptchaVerification(),
reqVO.getCaptchaCode()
);
if (!checked) { if (!checked) {
throw exception(AUTH_LOGIN_CAPTCHA_CODE_ERROR); throw exception(AUTH_LOGIN_CAPTCHA_CODE_ERROR);
} }