You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
required when new user is added or existing one is edited
should be included in CurrentUser
unique and not null - it should be implemented on UserManager level (see validate).
Additionally:
we should avoid static usages of SecurityContextHolder.getContext().getAuthentication(). Instead please define AuthenticationService with CurrentUser getAuthenticatedUser() method. Should be registered as Spring bean in WebSecurityConfig
The email should be:
CurrentUserUserManagerlevel (seevalidate).Additionally:
SecurityContextHolder.getContext().getAuthentication(). Instead please defineAuthenticationServicewithCurrentUser getAuthenticatedUser()method. Should be registered as Spring bean inWebSecurityConfig