fix invalidate session
@@ -37,6 +37,7 @@ import org.lastaflute.web.login.credential.LoginCredential;
import org.lastaflute.web.login.credential.UserPasswordCredential;
import org.lastaflute.web.login.exception.LoginRequiredException;
import org.lastaflute.web.login.option.LoginSpecifiedOption;
+import org.lastaflute.web.servlet.session.SessionManager;
/**
* @author jflute
@@ -53,6 +54,8 @@ public class FessLoginAssist extends TypicalLoginAssist<String, FessUserBean, Fe
@Resource
private AsyncManager asyncManager;
@Resource
+ private SessionManager sessionManager;
+ @Resource
private FessConfig fessConfig;
@Resource
private UserBhv userBhv;
@@ -167,4 +170,12 @@ public class FessLoginAssist extends TypicalLoginAssist<String, FessUserBean, Fe
cb.query().setPassword_Equal(cipheredPassword);
}).map(user -> (FessUser) user);
}
+
+ // ===================================================================================
+ // Logout
+ // ======
+ @Override
+ public void logout() {
+ sessionManager.invalidate();
+ }
}
