better UI/UX

This commit is contained in:
Parpaillax
2024-04-24 14:46:02 +02:00
parent cc658b8427
commit 3713edd3fa
3 changed files with 8 additions and 5 deletions

View File

@@ -27,7 +27,6 @@ public class UserInterceptor implements HandlerInterceptor {
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (authentication != null && authentication.isAuthenticated() && !authentication.getName().equals("anonymousUser")) {
UserProfil user = this.userService.utilisateurByName(authentication.getName());
System.out.println(user);
modelAndView.getModelMap().addAttribute("user", user.getCredit());
}
}