fix: 通过key调用系统后清理session
This commit is contained in:
parent
0c9f45bb00
commit
c6cb4025c6
|
@ -49,4 +49,11 @@ public class ApiKeyFilter extends AnonymousFilter {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void postHandle(ServletRequest request, ServletResponse response) throws Exception {
|
||||
if (SecurityUtils.getSubject().isAuthenticated()) {
|
||||
SecurityUtils.getSubject().logout();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue