debug logout + affichage du prénom dans la page de l'application

This commit is contained in:
2025-12-01 18:28:30 +01:00
parent 915f7a06f9
commit b4889e7ec9
6 changed files with 41 additions and 11 deletions

View File

@@ -1,9 +1,18 @@
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head><meta charset="utf-8"/><title>Accueil</title></head>
<head>
<meta charset="utf-8"/>
<title>Accueil</title></head>
<body>
<h1>Bienvenue sur FotoSharing</h1>
<h1>Bienvenue sur FotoSharing<span th:if="${prenom}" th:text="' : ' + ${prenom}"></span></h1>
<p><a th:href="@{/upload}">Uploader une photo</a></p>
<p><a th:href="@{/logout}">Se déconnecter</a></p>
<p>
<form th:action="@{/logout}" method="post" style="display: inline;">
<button type="submit"
style="background: none; border: none; color: blue; text-decoration: underline; cursor: pointer;">
Se déconnecter
</button>
</form>
</p>
</body>
</html>