]> source.dussan.org Git - archiva.git/blob
274ec27f944b10da559567db1be406f05f5600be
[archiva.git] /
1 <%--
2   ~
3   ~ Licensed under the Apache License, Version 2.0 (the "License");
4   ~ you may not use this file except in compliance with the License.
5   ~ You may obtain a copy of the License at
6   ~
7   ~      http://www.apache.org/licenses/LICENSE-2.0
8   ~
9   ~ Unless required by applicable law or agreed to in writing, software
10   ~ distributed under the License is distributed on an "AS IS" BASIS,
11   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   ~ See the License for the specific language governing permissions and
13   ~ limitations under the License.
14   --%>
15
16 <%@ taglib prefix="s" uri="/struts-tags" %>
17 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
18 <%@ taglib uri="/redback/taglib-1.0" prefix="redback" %>
19
20 <html>
21 <s:i18n name="org.apache.archiva.redback.struts2.default">
22 <head>
23   <title><s:text name="login.page.title"/></title>
24 </head>
25
26 <body onload="javascript:document.forms['login'].username.focus();">
27
28
29 <c:choose>
30   <c:when test="${sessionScope.securitySession.authenticated != true}">
31   
32   <h2><s:text name="login.section.title"/></h2>
33
34   <%@ include file="/WEB-INF/jsp/redback/include/formValidationResults.jsp" %>
35   
36   
37     <s:form action="login" namespace="/security" theme="xhtml" 
38          id="loginForm" method="post" name="login" cssClass="security login">
39       <s:textfield label="%{getText('username')}" name="username" size="30" />
40       <s:password  label="%{getText('password')}" name="password" size="20" />
41       <s:checkbox label="%{getText('login.remember.me')}" name="rememberMe" value="false" />
42       <s:submit value="%{getText('login')}" method="login" id="loginSubmit"/>
43       <s:submit value="%{getText('cancel')}" method="cancel" id="loginCancel" />
44   </s:form>
45 <%-- TODO: Figure out how to auto-focus to first field --%>
46
47 <ul class="tips">
48   <%--
49   <li>
50      Forgot your Username? 
51      <s:url id="forgottenAccount" action="findAccount" />
52      <s:a href="%{forgottenAccount}">Email me my account information.</s:a>
53   </li>
54     --%>
55   <redback:isNotReadOnlyUserManager>
56   <li>
57      <s:text name="login.need.an.account"/>
58      <s:url id="registerUrl" action="register" />
59      <s:a id="registerLinkLoginPage" href="%{registerUrl}"><s:text name="login.register"/></s:a>
60   </li>
61   <li>
62      <s:text name="login.forgot.your.password"/>
63      <s:url id="forgottenPassword" action="passwordReset" />
64      <s:a id="forgottenPasswordLink" href="%{forgottenPassword}"><s:text name="login.request.password.reset"/></s:a>
65   </li>
66   </redback:isNotReadOnlyUserManager>
67 </ul>
68 </c:when>
69 <c:otherwise>
70   <p/>
71         <s:text name="login.already.logged.in"/>
72   <p/>
73 </c:otherwise>
74 </c:choose>
75 </body>
76 </s:i18n>
77 </html>