Index: lams_common/web/login.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/Attic/login.jsp,v diff -u -r1.4 -r1.5 --- lams_common/web/login.jsp 19 Dec 2004 11:53:12 -0000 1.4 +++ lams_common/web/login.jsp 10 Jan 2005 02:40:01 -0000 1.5 @@ -1,171 +1,30 @@ - -<%@ 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" %> +<%@ taglib uri="/WEB-INF/struts/struts-tiles.tld" prefix="tiles" %> +<%@ page import="com.lamsinternational.lams.security.JspRedirectStrategy" %> <% - - //FIXME: temporary solution - if (Global.getServletContext() == null) - Global.setServletContext( request.getSession().getServletContext() ); - - String failed = request.getParameter("failed"); - if (failed == null) + if (JspRedirectStrategy.loginPageRedirected(request,response)) { - if (JspRedirectStrategy.loginPageRedirected(request,response)) - return; - } - else - { - if (JspRedirectStrategy.errorPageRedirected(request,response)) - return; - } - + return; + } + String webAuthUser = (String) session.getAttribute("WEBAUTH_USER"); if (webAuthUser != null) - { + { response.sendRedirect("j_security_check?j_username=" + webAuthUser + "&j_password=Dummy"); - } - + } %> - - Login - LAMS :: Learning Activity Management System - - - - + + + + + + + - - - - - - - - - - - - -
- - - - - - - - - - -
- -
- -
- Welcome - -
-
- - - - - - - - - - - - - - - - -
- -
-

-
-   - -
" method="post" name="loginForm" id="loginForm"> - <%if ( failed != null ){%> - - Sorry, that username or password is not known. Please try again. - - <%}%> - - - - - - - - - - - - - - - - - - - - - - -
- Username - - -
- Password - - -
- -
-


-
- WebAuth Users: click here -
-
- -
- © 2002-2005 LAMS Foundation. - - - This copy of LAMS™ is authorised for use by the registered users only. - - Version 1.1 -
-
- - - - -
-
- -