login.jsp
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="header.jsp">
<jsp:param name="pageTitle" value="Login page"/>
</jsp:include>
<c:url value="/login" var="loginUrl"/>
<div class="container-fluid"/>
<h1 class="name">CONNEXION</h1>
<div class="panel panel-info signInForm ">
<div class="panel-body">
<form action="${loginUrl}" method="post" >
<b><c:out value="${message}"></c:out></b>
<div class="form-group">
<label for="username">Username</label>
<input class="form-control" type="text" id="username" name="username"/>
</div>
<div class="form-group">
<label for="password">Password</label>
<input class="form-control" type="password" id="password" name="password"/>
</div>
<input type="hidden"
name="${_csrf.parameterName}"
value="${_csrf.token}"/>
<div class="text-center">
<button type="submit" class="btn btn-info">Log in</button>
</div>
</form>
</div>
</div>
</div>
<jsp:include page="footer.jsp"/>