bfb646fff4
Closes gh-25
34 lines
1.8 KiB
HTML
34 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
|
|
<head>
|
|
<title>Spring Security OAuth 2.0 Sample</title>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.css" th:href="@{/webjars/bootstrap/css/bootstrap.css}" />
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Login</h1>
|
|
<p th:if="${loginError}" style="font-weight:bold;color:red;">Wrong username or password</p>
|
|
<form th:action="@{/login}" method="post">
|
|
<div class="form-row">
|
|
<div class="form-group">
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" value="user1" autofocus="autofocus" class="form-control">
|
|
<small class="form-text text-muted">user1 / password</small>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" value="password" class="form-control">
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Log in</button>
|
|
</form>
|
|
</div>
|
|
<script src="/webjars/jquery/jquery.min.js" th:src="@{/webjars/jquery/jquery.min.js}"></script>
|
|
<script src="/webjars/bootstrap/js/bootstrap.min.js" th:src="@{/webjars/bootstrap/js/bootstrap.min.js}"></script>
|
|
</body>
|
|
</html> |