短信验证码校验逻辑BUG修复
This commit is contained in:
parent
c40aa1f950
commit
f9131832c7
@ -123,7 +123,7 @@ public class SysLoginService {
|
|||||||
*/
|
*/
|
||||||
private boolean validateSmsCode(String phonenumber, String smsCode, HttpServletRequest request) {
|
private boolean validateSmsCode(String phonenumber, String smsCode, HttpServletRequest request) {
|
||||||
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)) {
|
||||||
asyncService.recordLogininfor(phonenumber, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"), request);
|
asyncService.recordLogininfor(phonenumber, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"), request);
|
||||||
throw new CaptchaExpireException();
|
throw new CaptchaExpireException();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user