This commit is contained in:
Parpaillax
2024-04-24 15:14:41 +02:00
parent bc49d8eeee
commit 30dcb2abad

View File

@@ -76,7 +76,7 @@ public class ArticleController {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
String username = authentication.getName(); String username = authentication.getName();
UserProfil userProfile = userService.utilisateurByName(username); UserProfil userProfile = userService.utilisateurByName(username);
article.setUtilisateur(userProfile.getId()); article.setNoUtilisateur(userProfile.getId());
//Récupérer le lieu de retrait //Récupérer le lieu de retrait
Retrait retrait = new Retrait(); Retrait retrait = new Retrait();
retrait.setRue(rue); retrait.setRue(rue);