login.html 1.0 KB

123456789101112131415161718192021222324252627
  1. <html xmlns:th="http://www.thymeleaf.org" xmlns:tiles="http://www.thymeleaf.org">
  2. <head>
  3. <title tiles:fragment="title">Messages : Create</title>
  4. </head>
  5. <body>
  6. <div tiles:fragment="content">
  7. <form name="f" th:action="@{/j_security_check}" method="post">
  8. <fieldset>
  9. <legend>Please Login</legend>
  10. <div th:if="${param.error}" class="alert alert-error">
  11. Invalid username and password.
  12. </div>
  13. <div th:if="${param.logout}" class="alert alert-success">
  14. You have been logged out.
  15. </div>
  16. <label for="j_username">Username</label>
  17. <input type="text" id="j_username" name="j_username"/>
  18. <label for="j_password">Password</label>
  19. <input type="password" id="j_password" name="j_password"/>
  20. <div class="form-actions">
  21. <button type="submit" class="btn">Log in</button>
  22. </div>
  23. </fieldset>
  24. </form>
  25. </div>
  26. </body>
  27. </html>