From 1cd8012fc0372635754df6717bc13a459d51e997 Mon Sep 17 00:00:00 2001 From: Parpaillax Date: Tue, 23 Apr 2024 15:47:24 +0200 Subject: [PATCH] profile page --- src/main/java/fr/eni/enchere/controllers/ProfileController.java | 2 +- src/main/resources/templates/modele-page.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/eni/enchere/controllers/ProfileController.java b/src/main/java/fr/eni/enchere/controllers/ProfileController.java index e6e3985..1a5d887 100644 --- a/src/main/java/fr/eni/enchere/controllers/ProfileController.java +++ b/src/main/java/fr/eni/enchere/controllers/ProfileController.java @@ -27,7 +27,7 @@ public class ProfileController { // Obtenez l'authentification actuelle Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); // Vérifiez si l'utilisateur est authentifié - if (!authentication.getName().equals("anonymousUser") || true) { //Retirer le true pour le bon fonctionnement + if (!authentication.getName().equals("anonymousUser")) { //Retirer le true pour le bon fonctionnement // Obtenez les détails de l'utilisateur authentifié String username = authentication.getName(); // Utilisez le service approprié pour récupérer les informations de l'utilisateur à partir du nom d'utilisateur diff --git a/src/main/resources/templates/modele-page.html b/src/main/resources/templates/modele-page.html index 081eae0..8980238 100644 --- a/src/main/resources/templates/modele-page.html +++ b/src/main/resources/templates/modele-page.html @@ -25,7 +25,7 @@ Vendre un article