mirror of https://github.com/elunez/eladmin
update
parent
10aee59eef
commit
7cbca07b20
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue