Skip to content

Commit

Permalink
Replaced hard-coded value for user constructor
Browse files Browse the repository at this point in the history
with email property from gitlab4j.api.models.User

hard coded values might not be appropriate for all cases

may cause issues in the application
  • Loading branch information
prince-panwar committed Feb 11, 2023
1 parent b8e5404 commit b2b71a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class GitLabOAuthUserDetails extends User {
private static final long serialVersionUID = 1709511212188366292L;

public GitLabOAuthUserDetails(org.gitlab4j.api.models.User user, GrantedAuthority[] authorities) {
super(user.getUsername(), "", true, true, true, true, authorities);
super(user.getUsername(), user.getEmail(), true, true, true, true, authorities);
}

}

0 comments on commit b2b71a2

Please sign in to comment.