"src/main/vscode:/vscode.git/clone" did not exist on "ffe26f9348aa29deab400c0163e083ee0071380c"
Commit 7cbca07b authored by Zheng Jie's avatar Zheng Jie
Browse files

update

parent 10aee59e
......@@ -81,14 +81,16 @@ public class AuthorizationController {
redisUtils.del(authUser.getUuid());
if (StringUtils.isBlank(code)) {
log.error("验证码不存在或已过期");
Map<String, String> errorData = new HashMap<>(2);
Map<String, Object> errorData = new HashMap<>(2);
errorData.put("message", "验证码不存在或已过期");
errorData.put("code", 400);
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);
Map<String, Object> errorData = new HashMap<>(2);
errorData.put("message", "验证码错误");
errorData.put("code", 400);
return new ResponseEntity<>(errorData, HttpStatus.BAD_REQUEST);
}
UsernamePasswordAuthenticationToken authenticationToken =
......
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