Index: lams_common/web/login.jsp =================================================================== diff -u -r9610e0089dfc7164375251998962e0b07f95d769 -rae1790ef7e6ea6c158c56bca3b09ef33a5c311ee --- lams_common/web/login.jsp (.../login.jsp) (revision 9610e0089dfc7164375251998962e0b07f95d769) +++ lams_common/web/login.jsp (.../login.jsp) (revision ae1790ef7e6ea6c158c56bca3b09ef33a5c311ee) @@ -3,7 +3,13 @@ <%@ page contentType="text/html; charset=iso-8859-1" language="java" %> <%@ page session="true" %> <%@ page import="com.lamsinternational.lams.util.JspRedirectStrategy" %> +<%@ page import="com.lamsinternational.lams.security.Global" %> <% + + //FIXME: temporary solution + if (Global.getServletContext() == null) + Global.setServletContext( request.getSession().getServletContext() ); + String failed = request.getParameter("failed"); if (failed == null) { @@ -15,6 +21,13 @@ if (JspRedirectStrategy.errorPageRedirected(request,response)) return; } + + String webAuthUser = (String) session.getAttribute("WEBAUTH_USER"); + if (webAuthUser != null) + { + response.sendRedirect("j_security_check?j_username=" + webAuthUser + "&j_password=Dummy"); + } + %> @@ -104,11 +117,27 @@ + +