better UI/UX
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user