Commit 2490358c by fengshuonan

修复无法登出bug

parent 8a670ccb
......@@ -157,6 +157,7 @@ public class AuthServiceImpl implements AuthService {
if (tokenHeader.equalsIgnoreCase(cookie.getName())) {
Cookie temp = new Cookie(cookie.getName(), "");
temp.setMaxAge(0);
temp.setPath("/");
HttpContext.getResponse().addCookie(temp);
}
}
......
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