NIHVIVO-1460 remove the hooks in Authenticate that were supposed to allow programmatic login - this is superseded by the ProgramLogin servlet.

This commit is contained in:
jeb228 2010-12-09 17:17:16 +00:00
parent 224c21b077
commit 48b4f16ed2

View file

@ -59,9 +59,6 @@ public class Authenticate extends VitroHttpServlet {
*/
private static final String PARAMETER_RETURN = "return";
/** If this is set, a status of NOWHERE should be treated as LOGGING_IN. */
private static final String PARAMETER_LOGGING_IN = "loginForm";
/** The username field on the login form. */
private static final String PARAMETER_USERNAME = "loginName";
@ -193,22 +190,9 @@ public class Authenticate extends VitroHttpServlet {
+ "current state is NOWHERE");
}
if ((currentState == NOWHERE) && isLoggingInByParameter(request)) {
currentState = LOGGING_IN;
log.debug("forced from NOWHERE to LOGGING_IN by '"
+ PARAMETER_LOGGING_IN + "' parameter");
}
return currentState;
}
/**
* If this parameter is present, we aren't NOWHERE.
*/
private boolean isLoggingInByParameter(HttpServletRequest request) {
return (request.getParameter(PARAMETER_LOGGING_IN) != null);
}
/**
* They just got here. Start the process.
*/