Show error info on login page
parent
6492baf98d
commit
921ddb56bd
|
@ -1,57 +1,62 @@
|
||||||
<%--
|
<%--
|
||||||
*
|
*
|
||||||
* @author Shengzhao Li
|
* @author Shengzhao Li
|
||||||
--%>
|
--%>
|
||||||
|
|
||||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||||
<!DOCTYPE HTML>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
<html>
|
<!DOCTYPE HTML>
|
||||||
<head>
|
<html>
|
||||||
<title>Oauth login</title>
|
<head>
|
||||||
</head>
|
<title>Oauth login</title>
|
||||||
<body>
|
</head>
|
||||||
<h2>Oauth login</h2>
|
<body>
|
||||||
|
<h2>Oauth login</h2>
|
||||||
<form action="${contextPath}/login.do" method="post">
|
|
||||||
|
<form action="${contextPath}/login.do" method="post">
|
||||||
<label for="username">Username:</label>
|
|
||||||
<input type="text" id="username" name="j_username" value="" required="required"/>
|
<label for="username">Username:</label>
|
||||||
<br/>
|
<input type="text" id="username" name="j_username" value="" required="required"/>
|
||||||
<br/>
|
<br/>
|
||||||
<label for="password">Password:</label>
|
<br/>
|
||||||
<input type="password" name="j_password" id="password" value="" required="required"/>
|
<label for="password">Password:</label>
|
||||||
<br/>
|
<input type="password" name="j_password" id="password" value="" required="required"/>
|
||||||
<input type="submit" value="Login"/>
|
<br/>
|
||||||
</form>
|
<input type="submit" value="Login"/>
|
||||||
<div>
|
<span style="color:red;">
|
||||||
<p>You can use the users to login as follow:</p>
|
<c:if test="${param.authorization_error eq 2}">Access denied !!!</c:if>
|
||||||
<table style="border: 1px solid #eee;">
|
<c:if test="${param.authentication_error eq 1}">Authentication Failure</c:if>
|
||||||
<thead>
|
</span>
|
||||||
<tr>
|
</form>
|
||||||
<th>Username</th>
|
<div>
|
||||||
<th>Password</th>
|
<p>You can use the users to login as follow:</p>
|
||||||
<th>Privileges</th>
|
<table style="border: 1px solid #eee;">
|
||||||
</tr>
|
<thead>
|
||||||
</thead>
|
<tr>
|
||||||
<tbody>
|
<th>Username</th>
|
||||||
<tr>
|
<th>Password</th>
|
||||||
<td>admin</td>
|
<th>Privileges</th>
|
||||||
<td>admin</td>
|
</tr>
|
||||||
<td>All privileges, allow visit [Mobile] and [Unity] resources</td>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>unity</td>
|
<td>admin</td>
|
||||||
<td>unity</td>
|
<td>admin</td>
|
||||||
<td>Only allow visit [Unity] resource, support grant_type:
|
<td>All privileges, allow visit [Mobile] and [Unity] resources</td>
|
||||||
<em>authorization_code,refresh_token,implicit</em></td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
<tr>
|
<td>unity</td>
|
||||||
<td>mobile</td>
|
<td>unity</td>
|
||||||
<td>mobile</td>
|
<td>Only allow visit [Unity] resource, support grant_type:
|
||||||
<td>Only allow visit [Mobile] resource, support grant_type: <em>password,refresh_token</em></td>
|
<em>authorization_code,refresh_token,implicit</em></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
<tr>
|
||||||
</table>
|
<td>mobile</td>
|
||||||
</div>
|
<td>mobile</td>
|
||||||
</body>
|
<td>Only allow visit [Mobile] resource, support grant_type: <em>password,refresh_token</em></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue