NIHVIVO-151 send all logout requests directly to /logout. Remove old links to login_process.jsp
This commit is contained in:
parent
f200a9bb59
commit
d60f39f7d4
6 changed files with 4 additions and 20 deletions
|
@ -1293,11 +1293,6 @@
|
|||
<servlet-name>loginExternalAuthReturn</servlet-name>
|
||||
<url-pattern>/loginExternalAuthReturn</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<!-- for backward-compatibility -->
|
||||
<servlet-name>login</servlet-name>
|
||||
<url-pattern>/login_process.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>logout</servlet-name>
|
||||
<url-pattern>/logout</url-pattern>
|
||||
|
|
|
@ -42,8 +42,8 @@ public class Controllers {
|
|||
|
||||
public static final String TAB = "/index.jsp";
|
||||
|
||||
public static final String LOGIN_JSP = "/login_process.jsp";
|
||||
public static final String LOGOUT_JSP = "/login_process.jsp";
|
||||
public static final String LOGIN_JSP = "/login";
|
||||
public static final String LOGOUT_JSP = "/logout";
|
||||
|
||||
public static final String BASIC_JSP = "/templates/page/basicPage.jsp";
|
||||
public static final String DEBUG_JSP = "/templates/page/debug.jsp";
|
||||
|
|
|
@ -25,15 +25,6 @@ public class Login extends HttpServlet {
|
|||
@Override
|
||||
protected void doPost(HttpServletRequest request,
|
||||
HttpServletResponse response) throws ServletException, IOException {
|
||||
/*
|
||||
* For backward compatibility, if they requested a logout, honor the
|
||||
* request.
|
||||
*/
|
||||
if ("Log Out".equals(request.getParameter("loginSubmitMode"))) {
|
||||
request.getRequestDispatcher("/logout").forward(request, response);
|
||||
return;
|
||||
}
|
||||
|
||||
String username = request.getParameter(PARAM_USERNAME);
|
||||
String password = request.getParameter(PARAM_PASSWORD);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ public class UrlBuilder {
|
|||
INDIVIDUAL_EDIT("/entityEdit"),
|
||||
INDIVIDUAL_LIST("/individuallist"),
|
||||
LOGIN("/login"),
|
||||
LOGOUT("/login_process.jsp"),
|
||||
LOGOUT("/logout"),
|
||||
SEARCH("/search"),
|
||||
SITE_ADMIN("/siteAdmin"),
|
||||
TERMS_OF_USE("/termsOfUse"),
|
||||
|
@ -121,7 +121,7 @@ public class UrlBuilder {
|
|||
}
|
||||
|
||||
public String getLogoutUrl() {
|
||||
return getPortalUrl(Route.LOGOUT, new ParamMap("loginSubmitMode", "Log Out"));
|
||||
return getPortalUrl(Route.LOGOUT);
|
||||
}
|
||||
|
||||
public ParamMap getPortalParam() {
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
|
||||
<c:url var="logoutHref" value="<%= Controllers.LOGOUT_JSP %>">
|
||||
<c:param name="home" value="${currentPortal}" />
|
||||
<c:param name="loginSubmitMode" value="Log Out" />
|
||||
</c:url>
|
||||
|
||||
<c:url var="siteAdminHref" value="<%= Controllers.SITE_ADMIN %>">
|
||||
|
|
|
@ -73,7 +73,6 @@ portal.getRootBreadCrumbURL() : request.getContextPath()+"/";
|
|||
|
||||
<c:url var="logoutHref" value="<%= Controllers.LOGOUT_JSP %>">
|
||||
<c:param name="home" value="${currentPortal}" />
|
||||
<c:param name="loginSubmitMode" value="Log Out" />
|
||||
</c:url>
|
||||
|
||||
<c:url var="siteAdminHref" value="<%= Controllers.SITE_ADMIN %>">
|
||||
|
|
Loading…
Add table
Reference in a new issue