"...net/mingsoft/cms/git@ustchcs.com:gujinli1118/MCMS.git" did not exist on "57d66f8701aa319b84dbcf63cf7aed5354a7c955"
Commit 10aee59e authored by Zheng Jie's avatar Zheng Jie
Browse files

update

parent d52ce063
......@@ -80,11 +80,13 @@ public class AuthorizationController {
// 清除验证码
redisUtils.del(authUser.getUuid());
if (StringUtils.isBlank(code)) {
log.error("验证码不存在或已过期");
Map<String, String> errorData = new HashMap<>(2);
errorData.put("message", "验证码不存在或已过期");
return new ResponseEntity<>(errorData, HttpStatus.BAD_REQUEST);
}
if (StringUtils.isBlank(authUser.getCode()) || !authUser.getCode().equalsIgnoreCase(code)) {
log.error("验证码错误");
Map<String, String> errorData = new HashMap<>(2);
errorData.put("message", "验证码错误");
return new ResponseEntity<>(errorData, HttpStatus.BAD_REQUEST);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment