修复没有验证码登录

master
Number7 2024-08-01 11:36:33 +08:00
parent ac5af41678
commit 383950d8c4
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ public class ValidateCodeServiceImpl implements ValidateCodeService {
boolean captchaEnabled = captchaProperties.getEnabled();
CaptchaCodeResp.CaptchaCodeRespBuilder respBuilder = CaptchaCodeResp.builder()
.captchaEnabled(captchaEnabled);
if (!captchaEnabled) {
if (!captchaEnabled)
{
//直接返回
return Result.success(respBuilder.build());
}