Commit ac31a46f by guojuxing

单点登录

parent f30f00d2
......@@ -161,6 +161,8 @@ public class LoginController {
if (UserContext.getContext().getByToken(token).getUserInfo() != null) {
//已有登录信息
response.setHeader("location", redirectUrl);
//塞缓存
UserDetailUtils.setUserDetail(UserContext.getContext().getByToken(token));
return RestResponse.success();
}
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "token错误");
......
Markdown is supported
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