提交 a9a866f7 编写于 作者: O o2null

Merge branch 'cherry-pick-cfe09f8c' into 'master'

修正header导致的权限未删除

See merge request o2oa/o2oa!6027
......@@ -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.
先完成此消息的编辑!
想要评论请 注册