【8.1.3】【auth】开启密码校验时候才进行验证码判断

pull/61/head
fengshuonan 2024-03-15 18:40:05 +08:00
parent 9193589a7a
commit f372c0c143
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@ public class LoginService {
Integer loginErrorCount = validatePasswordRetryTimes(loginRequest);
// 2. 如果开启了验证码校验,则验证当前请求的验证码是否正确
validateCaptcha(loginRequest);
if (validatePassword) {
validateCaptcha(loginRequest);
}
// 3. 解密密码的密文需要sys_config相关配置打开
decryptRequestPassword(loginRequest);