Skip to content

Commit

Permalink
Merge pull request #10 from harmlessprince/tenant
Browse files Browse the repository at this point in the history
updated JwtAuthenticationFilter
  • Loading branch information
harmlessprince authored Feb 1, 2025
2 parents 0f4847e + c8d6c9e commit f86d984
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected void doFilterInternal(@NonNull HttpServletRequest request, @NonNull H
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (authentication == null && email != null) {
User userDetails = (User) userDetailsService.loadUserByUsername(email);
log.info("User found with tenant {}", userDetails.getTenant());
// log.info("User found with tenant {}", userDetails.getTenant());
if (userDetails.getTenant() != null) {
request.setAttribute(AppConstants.CURRENT_USER_TENANT_ID, userDetails.getTenant().getId());
}
Expand Down

0 comments on commit f86d984

Please sign in to comment.