fix 修复 短信验证码校验逻辑错误

2.X
疯狂的狮子li 2022-05-07 15:22:56 +08:00
parent 3f26b6a4b7
commit 72ebb28330
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class SysLoginService {
*/ */
private boolean validateSmsCode(String phonenumber, String smsCode) { private boolean validateSmsCode(String phonenumber, String smsCode) {
String code = RedisUtils.getCacheObject(Constants.CAPTCHA_CODE_KEY + phonenumber); String code = RedisUtils.getCacheObject(Constants.CAPTCHA_CODE_KEY + phonenumber);
if (StringUtils.isNotBlank(code)) { if (StringUtils.isBlank(code)) {
recordLogininfor(phonenumber, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire")); recordLogininfor(phonenumber, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"));
throw new CaptchaExpireException(); throw new CaptchaExpireException();
} }