fix: 通过key调用系统后清理session
This commit is contained in:
parent
c6cb4025c6
commit
922cc96cb0
|
@ -52,7 +52,7 @@ public class ApiKeyFilter extends AnonymousFilter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void postHandle(ServletRequest request, ServletResponse response) throws Exception {
|
protected void postHandle(ServletRequest request, ServletResponse response) throws Exception {
|
||||||
if (SecurityUtils.getSubject().isAuthenticated()) {
|
if (ApiKeyHandler.isApiKeyCall(WebUtils.toHttp(request)) && SecurityUtils.getSubject().isAuthenticated()) {
|
||||||
SecurityUtils.getSubject().logout();
|
SecurityUtils.getSubject().logout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue