Merge "OAuth: Check for session validity during logout" into stable-2.10

This commit is contained in:
Saša Živkov
2015-05-06 13:00:20 +00:00
committed by Gerrit Code Review

View File

@@ -52,6 +52,8 @@ class OAuthLogoutServlet extends HttpLogoutServlet {
protected void doLogout(HttpServletRequest req, HttpServletResponse rsp)
throws IOException {
super.doLogout(req, rsp);
oauthSession.get().logout();
if (req.getSession(false) != null) {
oauthSession.get().logout();
}
}
}