You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
857 B
26 lines
857 B
3 years ago
|
package com.fr.plugin;
|
||
|
|
||
|
import com.fr.decision.fun.impl.AbstractLogInOutEventProvider;
|
||
|
import com.fr.decision.webservice.login.LogInOutResultInfo;
|
||
|
import com.fr.decision.webservice.v10.user.UserService;
|
||
|
|
||
|
import javax.servlet.http.HttpServletRequest;
|
||
|
import javax.servlet.http.HttpSession;
|
||
|
|
||
|
public class LoginOutEventProvider extends AbstractLogInOutEventProvider {
|
||
|
|
||
|
@Override
|
||
|
public String logoutAction(LogInOutResultInfo result) {
|
||
|
HttpServletRequest request = result.getRequest();
|
||
|
|
||
|
HttpSession session = request.getSession();
|
||
|
if (session != null) {
|
||
|
session.removeAttribute("fine_auth_token");
|
||
|
}
|
||
|
String servletPath = request.getServletPath();
|
||
|
String contextPath = request.getContextPath();
|
||
|
String url = contextPath + servletPath + "/login?manual=true";
|
||
|
return url;
|
||
|
}
|
||
|
}
|