removed forcing of portal on login/logout

This commit is contained in:
nac26 2010-08-05 17:59:43 +00:00
parent 3b392c7eba
commit d3b8b89de4
2 changed files with 4 additions and 8 deletions

View file

@ -491,16 +491,14 @@ public class Authenticate extends FreemarkerHttpServlet {
/** What's the URL for the login screen? */
private String getLoginScreenUrl(HttpServletRequest request) {
String contextPath = request.getContextPath();
String urlParams = "?home=" + getPortalIdString(request)
+ "&login=block";
String urlParams = "?login=block";
return contextPath + Controllers.LOGIN + urlParams;
}
/** What's the URL for the site admin screen? */
private String getSiteAdminUrl(HttpServletRequest request) {
String contextPath = request.getContextPath();
String urlParams = "?home=" + getPortalIdString(request)
+ "&login=block";
String urlParams = "?login=block";
return contextPath + Controllers.SITE_ADMIN + urlParams;
}

View file

@ -183,16 +183,14 @@ public class LoginTemplateHelper extends LoginTemplateHelperBase {
/** What's the URL for this servlet? */
private String getAuthenticateUrl(HttpServletRequest request) {
String contextPath = request.getContextPath();
String urlParams = "?home=" + getPortalIdString(request)
+ "&login=block";
String urlParams = "?login=block";
return contextPath + "/authenticate" + urlParams;
}
/** What's the URL for this servlet, with the cancel parameter added? */
private String getCancelUrl(HttpServletRequest request) {
String contextPath = request.getContextPath();
String urlParams = "?home=" + getPortalIdString(request)
+ "&login=block&cancel=true";
String urlParams = "?login=block&cancel=true";
return contextPath + "/authenticate" + urlParams;
}