Chatto/chatto/src/main/resources/templates/login.html

30 lines
1.1 KiB
HTML
Raw Normal View History

2019-09-27 06:37:55 +00:00
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Title</title>
</head>
<body>
<div>Login Page</div>
<!-- <form action="#" th:action="@{/greeting}" th:object="${greeting}" method="post">
<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> -->
<!-- <form action="#" th:action="@{/perform_login}" th:object=${user} method="POST">
<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>
-->
<form action="#" th:action="@{/perform_login}" method="POST">
<label>Enter user name: </label>
<input type="text" name="username" id="username">
<br> <br> <label>Enter password: </label>
<input type="password" name="password" id="username"> <br> <br>
<input type="submit" value="Submit">
</form>
</body>
</html>