mirror of https://gitee.com/stylefeng/roses
【8.1.3】【auth】开启密码校验时候才进行验证码判断
parent
9193589a7a
commit
f372c0c143
|
@ -100,7 +100,9 @@ public class LoginService {
|
|||
Integer loginErrorCount = validatePasswordRetryTimes(loginRequest);
|
||||
|
||||
// 2. 如果开启了验证码校验,则验证当前请求的验证码是否正确
|
||||
validateCaptcha(loginRequest);
|
||||
if (validatePassword) {
|
||||
validateCaptcha(loginRequest);
|
||||
}
|
||||
|
||||
// 3. 解密密码的密文,需要sys_config相关配置打开
|
||||
decryptRequestPassword(loginRequest);
|
||||
|
|
Loading…
Reference in New Issue