login.html 908 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
  3. <head>
  4. <title>Login page</title>
  5. <meta charset="utf-8" />
  6. <link rel="stylesheet" href="/css/main.css" th:href="@{/css/main.css}" />
  7. </head>
  8. <body>
  9. <h1>Login page</h1>
  10. <p>Example user: user / password</p>
  11. <p th:if="${loginError}" class="error">Wrong user or password</p>
  12. <form th:action="@{/login}" method="post">
  13. <label for="username">Username</label>:
  14. <input type="text" id="username" name="username" autofocus="autofocus" /> <br />
  15. <label for="password">Password</label>:
  16. <input type="password" id="password" name="password" /> <br />
  17. <input type="submit" value="Log in" />
  18. </form>
  19. <p><a href="/index" th:href="@{/index}">Back to home page</a></p>
  20. </body>
  21. </html>