diff --git a/webapp/config/web.xml b/webapp/config/web.xml index c3b41bf68..39e4b8fd9 100644 --- a/webapp/config/web.xml +++ b/webapp/config/web.xml @@ -1087,11 +1087,6 @@ edu.cornell.mannlib.vitro.webapp.controller.edit.Authenticate - - login - edu.cornell.mannlib.vitro.webapp.controller.edit.Login - - loginExternalAuthSetup edu.cornell.mannlib.vitro.webapp.controller.authenticate.LoginExternalAuthSetup @@ -1280,16 +1275,6 @@ authenticate /authenticate - - - loginShibboleth - /loginShibboleth - loginExternalAuthSetup /loginExternalAuth diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/Controllers.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/Controllers.java index a357c1d37..e7372ce6f 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/Controllers.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/Controllers.java @@ -34,16 +34,15 @@ public class Controllers { public static final String SITE_ADMIN = "/siteAdmin"; public static final String LOGIN = "/login"; + public static final String LOGOUT = "/logout"; public static final String AUTHENTICATE = "/authenticate"; - public static final String EXPORT_RDF = "/export"; + public static final String EXPORT_RDF = "/export"; // jsps go here: public static final String TAB = "/index.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"; diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Login.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Login.java deleted file mode 100644 index 0e2d58ac8..000000000 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Login.java +++ /dev/null @@ -1,70 +0,0 @@ -/* $This file is distributed under the terms of the license in /doc/license.txt$ */ - -package edu.cornell.mannlib.vitro.webapp.controller.edit; - -import java.io.IOException; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import edu.cornell.mannlib.vitro.webapp.controller.Controllers; -import edu.cornell.mannlib.vitro.webapp.controller.login.LoginProcessBean; - -/** - * Provide a means for programmatic login (replaces old login_process.jsp). If - * they provide the right parameters, send them to be authenticated. - */ -public class Login extends HttpServlet { - private final static int DEFAULT_PORTAL_ID = 1; - - public static final String PARAM_USERNAME = "loginName"; - public static final String PARAM_PASSWORD = "loginPassword"; - - @Override - protected void doPost(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - String username = request.getParameter(PARAM_USERNAME); - String password = request.getParameter(PARAM_PASSWORD); - - /* - * If either the username or password are empty, send them to the site - * admin page. - */ - if ((username == null) || (username.equals("")) || (password == null) - || (password.equals(""))) { - response.sendRedirect(request.getContextPath() - + Controllers.SITE_ADMIN + "?home=" - + getPortalIdString(request)); - return; - } - - /* - * Otherwise, set up as if they had filled in the login form, and send - * them to authenticate it. - */ - LoginProcessBean bean = LoginProcessBean.getBean(request); - bean.setState(LoginProcessBean.State.LOGGING_IN); - request.getRequestDispatcher(Controllers.AUTHENTICATE).forward(request, - response); - } - - private final String getPortalIdString(HttpServletRequest request) { - String pId = (String) request.getAttribute("home"); - if (pId == null) { - pId = request.getParameter("home"); - } - if (pId == null) { - pId = String.valueOf(DEFAULT_PORTAL_ID); - } - return pId; - } - - @Override - protected void doGet(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - doPost(request, response); - } - -} diff --git a/webapp/web/themes/default/jsp/menu.jsp b/webapp/web/themes/default/jsp/menu.jsp index c6c89e5d6..247028417 100755 --- a/webapp/web/themes/default/jsp/menu.jsp +++ b/webapp/web/themes/default/jsp/menu.jsp @@ -47,7 +47,7 @@ <%-- A user is logged in --%> <% if (isLoggedIn) { %> - + diff --git a/webapp/web/themes/enhanced/jsp/identity.jsp b/webapp/web/themes/enhanced/jsp/identity.jsp index c6a67d93d..5111ea3e4 100644 --- a/webapp/web/themes/enhanced/jsp/identity.jsp +++ b/webapp/web/themes/enhanced/jsp/identity.jsp @@ -71,7 +71,7 @@ portal.getRootBreadCrumbURL() : request.getContextPath()+"/"; <%-- A user is logged in --%> <% if (isLoggedIn) { %> - +