Blame view

src/main/webapp/WEB-INF/pages/login.jsp 742 Bytes
322c9502   Julien Cartigny   Ad Spring securit...
1
2
3
4
5
6
7
8
9
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  <html>
  <head>
      <title>Title</title>
  </head>
  <body>
  <c:url value="/login" var="loginUrl"/>
  <form action="${loginUrl}" method="post">
6148d351   Julien Cartigny   Fixing message in...
10
      <b><c:out value="${message}"></c:out></b>
322c9502   Julien Cartigny   Ad Spring securit...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
      <p>
          <label for="username">Username</label>
          <input type="text" id="username" name="username"/>
      </p>
      <p>
          <label for="password">Password</label>
          <input type="password" id="password" name="password"/>
      </p>
      <input type="hidden"
             name="${_csrf.parameterName}"
             value="${_csrf.token}"/>
      <button type="submit" class="btn">Log in</button>
  </form>
  </body>
  </html>