Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.71 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3.      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
  4.     <head>
  5.         <title>Login</title>
  6.         <!-- Bootstrap core CSS -->
  7.         <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"></link>
  8.         <link th:href="@{/css/main.css}" rel="stylesheet"></link>
  9.     </head>
  10.  
  11.     <body class="form-container">
  12.         <form th:action="@{/login}" method="post">     
  13.             <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
  14.            
  15.             <div th:if="${param.error}">
  16.                 <div class="alert alert-danger">
  17.                     Invalid username and password.
  18.                 </div>
  19.             </div>
  20.             <div th:if="${param.logout}">
  21.                 <div class="alert alert-info">
  22.                     You have been logged out.
  23.                 </div>
  24.             </div>
  25.            
  26.             <div class="form-group">
  27.                 <label for="inputEmail" class="sr-only">Username</label>
  28.                 <input type="username" id="username" name="username" class="form-control" placeholder="Username" required="true" autofocus="true"></input>
  29.             </div>
  30.             <div class="form-group">
  31.                 <label for="inputPassword" class="sr-only">Password</label>
  32.                 <input type="password" id="password" name="password" class="form-control" placeholder="Password" required="true"></input>
  33.             </div>
  34.             <div class="form-group">
  35.                 <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
  36.             </div>
  37.             <p class="mt-5 mb-3 text-muted">&copy; 2017-2018</p>
  38.         </form>
  39.     </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement