This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 481
/
adminLogin.jsp
54 lines (54 loc) · 3.09 KB
/
adminLogin.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<%@ page import="org.springframework.security.web.csrf.CsrfToken" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<jsp:include page="/WEB-INF/templates/head.jsp" />
<body>
<div id="site-wrapper">
<jsp:include page="/WEB-INF/templates/navigation.jsp" />
<div class="main" id="main-two-columns">
<div class="left" id="main-content">
<div class="section">
<div class="section-content">
<div class="post">
<div class="post-title"><h2 class="label label-green">Login to administration</h2></div>
<p class="quiet large">Please login to the metadata administration using a local account (by default admin/admin).</p>
<div class="post-body">
<% String errorString = (String) request.getAttribute("error"); %>
<% if (errorString != null && errorString.trim().equals("true")) { %>
<div class="error">Incorrect login name or password. Please retry using correct login name and password.</div>
<% } %>
<p>
<form name='loginForm' action="<c:url value='/saml/web/login' />" method='POST'>
<table>
<tr>
<td><label for="username">User:</label></td>
<td><input type='text' name='username' id="username" class="text" value='admin'></td>
</tr>
<tr>
<td><label for="password">Password:</label></td>
<td><input type='password' name='password' id="password" class="text" value="admin"/></td>
</tr>
<tr>
<td></td>
<td>
<% CsrfToken token = (CsrfToken) request.getAttribute(CsrfToken.class.getName()); %>
<input name="<%= token.getParameterName()%>" type="hidden" value="<%=token.getToken()%>"/>
<input name="submit" class="button" type="submit" value="Login"/>
</td>
</tr>
</table>
</form>
</div>
</div>
<div class="clearer"> </div>
</div>
</div>
<div class="clearer"> </div>
</div>
<jsp:include page="/WEB-INF/templates/sidebar.jsp" />
</div>
<jsp:include page="/WEB-INF/templates/footer.jsp" />
</div>
</body>
</html>