15 lines
442 B
HTML
15 lines
442 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html xmlns:th="http://www.thymeleaf.org">
|
||
|
|
<head>
|
||
|
|
<title>Home</title>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<h2 th:text="${message}"></h2>
|
||
|
|
<!-- Formulario de Logout (POST) -->
|
||
|
|
<form th:action="@{/logout}" method="post">
|
||
|
|
<button type="submit">Cerrar Sesión</button>
|
||
|
|
<!-- Token CSRF (obligatorio) -->
|
||
|
|
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
||
|
|
</form>
|
||
|
|
</body>
|
||
|
|
</html>
|