blob: f8b6b1425027e325c4290fb4e8a39d2baee9e400 [file] [log] [blame]
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE 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 import="org.apache.shiro.SecurityUtils" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
</head>
<body>
<h2>Please Log in</h2>
<shiro:guest>
<p>Try one of the accounts defined in canonicaldb.json</p>
<style type="text/css">
table.sample {
border-width: 1px;
border-style: outset;
border-color: blue;
border-collapse: separate;
background-color: rgb( 255, 255, 240 );
}
table.sample th {
border-width: 1px;
padding: 1px;
border-style: none;
border-color: blue;
background-color: rgb( 255, 255, 240 );
}
table.sample td {
border-width: 1px;
padding: 1px;
border-style: none;
border-color: blue;
background-color: rgb( 255, 255, 240 );
}
</style>
<table class="sample">
<thead>
<tr>
<th>Username</th>
<th>Password</th>
</tr>
</thead>
<tbody>
<tr>
<td>canonical</td>
<td>password</td>
</tr>
<tr>
<td>john.doe</td>
<td>password</td>
</tr>
<tr>
<td>jane.doe</td>
<td>password</td>
</tr>
</tbody>
</table>
<br/><br/>
</shiro:guest>
<c:out value="${shiroLoginFailure}" default=""/><br/>
<form action="" method="post">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>Username:</td>
<td><input type="text" name="username" maxlength="30"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" maxlength="30"></td>
</tr>
<tr>
<td colspan="2" align="left"><input type="checkbox" name="rememberMe"><font size="2">Remember Me</font></td>
</tr>
<tr>
<td colspan="2" align="right"><input type="submit" name="submit" value="Login"></td>
</tr>
</table>
</form>
</body>
</html>