去除图形验证码
This commit is contained in:
parent
eae0491788
commit
231c0c0ad4
|
|
@ -240,17 +240,6 @@ public class TokenController {
|
||||||
if (StringUtils.isBlank(phone)) {
|
if (StringUtils.isBlank(phone)) {
|
||||||
throw new ServiceException("手机号为空,请联系管理员!");
|
throw new ServiceException("手机号为空,请联系管理员!");
|
||||||
}
|
}
|
||||||
String uuid = form.getUuid();
|
|
||||||
if (StringUtils.isBlank(uuid)) {
|
|
||||||
throw new ServiceException("uuid不能为空!");
|
|
||||||
}
|
|
||||||
String captcha = redisService.getCacheObject(CacheConstants.CAPTCHA_CODE_KEY + uuid).toString();
|
|
||||||
if (StringUtils.isBlank(captcha)) {
|
|
||||||
return R.fail("验证码超时,请重新刷新");
|
|
||||||
}
|
|
||||||
if (form.getCode() != null && !form.getCode().equals(captcha)) {
|
|
||||||
return R.fail("验证码错误");
|
|
||||||
}
|
|
||||||
//图形验证码校验成功,发送短信
|
//图形验证码校验成功,发送短信
|
||||||
R<Boolean> sendState = remoteUserService.sendCode(phone);
|
R<Boolean> sendState = remoteUserService.sendCode(phone);
|
||||||
return sendState;
|
return sendState;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue