Teaching_Assistant_Assistant/src/main/resources/templates/login.html

24 lines
527 B
HTML

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
</head>
<body>
<div th:if="${param.error}">
Invalid username or password!
</div>
<div th:if="${param.logout}">
You have been logged out!
</div>
<form th:action="@{/login}" method="post">
<label>Username: <input type="text" name="username"/></label>
<label>Password: <input type="password" name="password"/></label>
<button type="submit">Login</button>
</form>
</body>
</html>