2019-09-27 06:37:55 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
2019-10-02 16:25:46 +00:00
|
|
|
|
2019-09-27 06:37:55 +00:00
|
|
|
<head>
|
2019-10-02 16:25:46 +00:00
|
|
|
<div th:replace="fragments/head :: headFragment">
|
|
|
|
<title id="pageTitle">Login</title>
|
|
|
|
</div>
|
|
|
|
|
2019-09-27 06:37:55 +00:00
|
|
|
</head>
|
|
|
|
|
2019-10-02 16:25:46 +00:00
|
|
|
<body>
|
|
|
|
<div id="body-container" class="shadow-sm p-3 mb-5 bg-white rounded">
|
|
|
|
<!-- <div>Login Page</div> -->
|
|
|
|
<form action="#" th:action="@{/login}" method="POST" id="loginForm">
|
|
|
|
<fieldset>
|
|
|
|
<!-- <form action="#" th:action="@{/greeting}" th:object="${greeting}" method="post">
|
2019-09-27 06:37:55 +00:00
|
|
|
<p>Id: <input type="text" th:field="*{id}" /></p>
|
|
|
|
<p>Message: <input type="text" th:field="*{content}" /></p>
|
|
|
|
<p><input type="submit" value="Submit" /> <input type="reset" value="Reset" /></p>
|
|
|
|
</form> -->
|
2019-10-02 16:25:46 +00:00
|
|
|
<!-- <form action="#" th:action="@{/perform_login}" th:object=${user} method="POST">
|
2019-09-27 06:37:55 +00:00
|
|
|
<label>Enter user name: </label>
|
|
|
|
<input th:field="*{userName}" type="text" name="username" id="username">
|
|
|
|
<br> <br> <label>Enter password: </label>
|
|
|
|
<input th:field="*{password}" type="password" name="password" id="username"> <br> <br>
|
|
|
|
<input type="submit" value="Submit">
|
|
|
|
</form>
|
|
|
|
-->
|
2019-10-02 16:25:46 +00:00
|
|
|
<legend>Please Login</legend>
|
|
|
|
<div th:if="${param.error}" class="alert alert-error">
|
|
|
|
Invalid username or password.
|
|
|
|
</div>
|
|
|
|
<div th:if="${param.logout}" class="alert alert-success">
|
|
|
|
You have been logged out.
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label for="username">Enter user name: </label>
|
|
|
|
<input type="text" name="username" id="username">
|
|
|
|
<br> <br>
|
|
|
|
<label for="password">Enter password: </label>
|
|
|
|
<input type="password" name="password" id="password">
|
|
|
|
<br> <br>
|
|
|
|
<button type="submit" class="btn btn-primary">Login</button>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<script src="../js/loginPage.js" type="text/javascript"></script>
|
2019-09-27 06:37:55 +00:00
|
|
|
</body>
|
2019-10-02 16:25:46 +00:00
|
|
|
|
2019-09-27 06:37:55 +00:00
|
|
|
</html>
|