taylor 2004/05/13 15:56:05
Modified: applications/security/src/webapp/WEB-INF/security/login
login.jsp
Log:
Start of Login Portlet and Active Authentication
contributed by Ate Douma
PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.2 +18 -4 jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/login/login.jsp
Index: login.jsp
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/applications/security/src/webapp/WEB-INF/security/login/login.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- login.jsp 1 May 2004 17:01:03 -0000 1.1
+++ login.jsp 13 May 2004 22:56:05 -0000 1.2
@@ -13,15 +13,29 @@
See the License for the specific language governing permissions and
limitations under the License.
--%>
+<%@page import="org.apache.jetspeed.login.LoginConstants" %>
<html>
<title>Login</title>
<body>
- <form method="POST" action='<%= response.encodeURL("j_security_check")%>'>
- Username <input type="text" size="15" name="j_username">
+ <% if ( request.getUserPrincipal() != null )
+ { %>
+ Welcome <%= request.getUserPrincipal().getName() %> <br>
+ <a href='<%= response.encodeURL(request.getContextPath()+"/login/logout") %>'>Logout</a>
+ <% }
+ else
+ {
+ Integer retryCount = (Integer)request.getSession().getAttribute(LoginConstants.RETRYCOUNT);
+ if ( retryCount != null )
+ { %>
+ <br><i>Invalid username or password (<%=retryCount%>)</i><br>
+ <% } %>
+ <form method="POST" action='<%= response.encodeURL(request.getContextPath()+"/login/proxy")%>'>
+ Username <input type="text" size="15" name="<%=LoginConstants.USERNAME%>">
<br>
- Password <input type="password" size="15" name="j_password">
+ Password <input type="password" size="15" name="<%=LoginConstants.PASSWORD%>">
<input type="submit" value="Login">
</form>
+ <% } %>
</body>
-</html>
+</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
|