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
7 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
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" %>
21 <s:i18n name="org.apache.archiva.redback.struts2.default">
23 <title><s:text name="login.page.title"/></title>
26 <body onload="javascript:document.forms['login'].username.focus();">
30 <c:when test="${sessionScope.securitySession.authenticated != true}">
32 <h2><s:text name="login.section.title"/></h2>
34 <%@ include file="/WEB-INF/jsp/redback/include/formValidationResults.jsp" %>
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" />
45 <%-- TODO: Figure out how to auto-focus to first field --%>
51 <s:url id="forgottenAccount" action="findAccount" />
52 <s:a href="%{forgottenAccount}">Email me my account information.</s:a>
55 <redback:isNotReadOnlyUserManager>
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>
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>
66 </redback:isNotReadOnlyUserManager>
71 <s:text name="login.already.logged.in"/>