blob: b9dc3e286cd4de97ffc28dea87921bbc4fec2514 [file] [log] [blame]
<%
// Licensed to the Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE.txt file distributed with this work for
// additional information regarding copyright ownership. The ASF licenses this
// file to you under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%>
<%@page import="org.apache.oodt.cas.curation.servlet.CuratorConfMetKeys"%>
<jsp:include page="views/common/cas-curator-header.jsp" />
<% String projectName = application.getInitParameter(CuratorConfMetKeys.PROJECT_DISPLAY_NAME);%>
<h1 class="sectionTitle" style="width: auto; font-size: 22px; font-weight: bold; margin-top: 24px; text-align: center;">Please Log In to the <%=(projectName != null ? projectName+"-":"") %>CAS Curation Interface</h1>
<p>&nbsp;</p>
<form id="login-form" method="post" action="sso_login.jsp" name="login_form">
<input name="from" value="<%=request.getParameter("from")%>" type="hidden">
<center>
<%
if(request.getParameter("loginFail") != null){
%>
<div class="error" style="margin:0px;margin-bottom:5px;width:230px;font-size:90%">Invalid Credentials...<br/>Please try again.</div>
<%
}
if(request.getParameter("loginConnectFail") != null){
%>
<div class="error" style="margin:0px;margin-bottom:5px;width:230px;font-size:90%">Unable to contact LDAP authentication server...<br/>Please try again later.</div>
<%
}
%>
<table>
<tbody><tr>
<td>Username</td>
<td><input id="login-username" name="username" value="" size="20" maxlength="255" type="text"></td>
</tr>
<tr>
<td>Password</td>
<td><input name="password" value="" size="20" maxlength="255" type="password"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="login_submit" value="Log In" type="submit"></td>
</tr>
</tbody></table>
</center>
</form>
<div style=""></div>
<script type="text/javascript">
document.getElementById('login-username').focus();
</script>
<jsp:include page="views/common/cas-curator-footer.jsp" />