提交 cfe09f8c 编写于 作者: O o2null

修正header导致的权限未删除


(cherry picked from commit a41f68dc)
上级 e3bad8a8
......@@ -117,6 +117,7 @@ public class HttpToken {
+ this.domain(request)
+ (BooleanUtils.isTrue(Config.person().getTokenCookieHttpOnly()) ? "; HttpOnly" : "");
response.setHeader(SET_COOKIE, cookie);
response.setHeader(Config.person().getTokenName(), COOKIE_ANONYMOUS_VALUE);
} catch (Exception e) {
throw new Exception("delete Token cookie error.", e);
}
......@@ -127,6 +128,7 @@ public class HttpToken {
this.setAttribute(request, effectivePerson);
switch (effectivePerson.getTokenType()) {
case anonymous:
deleteToken(request, response);
break;
case user:
this.setResponseToken(request, response, effectivePerson);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册