|
|
|
@ -20,14 +20,13 @@ |
|
|
|
<p th:if="${param.logout}" class="alert">You have been logged out</p> |
|
|
|
<p th:if="${param.logout}" class="alert">You have been logged out</p> |
|
|
|
<p th:if="${param.error}" class="alert alert-error">There was an error, please try again</p> |
|
|
|
<p th:if="${param.error}" class="alert alert-error">There was an error, please try again</p> |
|
|
|
<h2>Login with Username and Password</h2> |
|
|
|
<h2>Login with Username and Password</h2> |
|
|
|
<form name="form" action="/login" method="POST"> |
|
|
|
<form name="form" th:action="@{/login}" action="/login" method="POST"> |
|
|
|
<fieldset> |
|
|
|
<fieldset> |
|
|
|
<input type="text" name="username" value="" placeholder="Username" /> |
|
|
|
<input type="text" name="username" value="" placeholder="Username" /> |
|
|
|
<input type="password" name="password" placeholder="Password" /> |
|
|
|
<input type="password" name="password" placeholder="Password" /> |
|
|
|
</fieldset> |
|
|
|
</fieldset> |
|
|
|
<input type="submit" id="login" value="Login" |
|
|
|
<input type="submit" id="login" value="Login" |
|
|
|
class="btn btn-primary" /> <input type="hidden" |
|
|
|
class="btn btn-primary" /> |
|
|
|
th:name="${_csrf.parameterName}" th:value="${_csrf.token}" /> |
|
|
|
|
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|