|
@@ -67,6 +67,13 @@ public class ListenerAuthorizingRealm extends AuthorizingRealm implements UserAu
|
|
|
authorization.getUser().getName());
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void onLoginOut(Authorization authorization) {
|
|
|
+ if (null != authorization)
|
|
|
+ getCache(authorization.getUser().getUsername()).clear();
|
|
|
+ SecurityUtils.getSubject().logout();
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void onAuthorizeSuccess(boolean isRemembered, Authorization authorization) {
|
|
|
SimpleAuthorizationInfo authorizationInfo = new SimpleAuthorizationInfo();
|