|
|
|
@ -193,10 +193,10 @@ public class AuthController { |
|
|
|
|
public CommonResult<Boolean> checkRandomCode(@RequestParam("username") String userName,@RequestParam("captchaVerification") String captchaVerification){ |
|
|
|
|
String verification = stringRedisTemplate.opsForValue().get(captchaVerification); |
|
|
|
|
if(StrUtil.isBlank(verification)){ |
|
|
|
|
return error(500,"验证码已失效"); |
|
|
|
|
return error(500,"请获取邮箱验证码!"); |
|
|
|
|
} |
|
|
|
|
if(!verification.equals(userName)){ |
|
|
|
|
return error(500,"验证码错误"); |
|
|
|
|
return error(500,"请输入正确的用户名"); |
|
|
|
|
}else{ |
|
|
|
|
return success(true); |
|
|
|
|
} |
|
|
|
|