Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
- <head>
- <title>Login</title>
- <!-- Bootstrap core CSS -->
- <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"></link>
- <link th:href="@{/css/main.css}" rel="stylesheet"></link>
- </head>
- <body class="form-container">
- <form th:action="@{/login}" method="post">
- <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
- <div th:if="${param.error}">
- <div class="alert alert-danger">
- Invalid username and password.
- </div>
- </div>
- <div th:if="${param.logout}">
- <div class="alert alert-info">
- You have been logged out.
- </div>
- </div>
- <div class="form-group">
- <label for="inputEmail" class="sr-only">Username</label>
- <input type="username" id="username" name="username" class="form-control" placeholder="Username" required="true" autofocus="true"></input>
- </div>
- <div class="form-group">
- <label for="inputPassword" class="sr-only">Password</label>
- <input type="password" id="password" name="password" class="form-control" placeholder="Password" required="true"></input>
- </div>
- <div class="form-group">
- <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
- </div>
- <p class="mt-5 mb-3 text-muted">© 2017-2018</p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement