Skip to content

Commit

Permalink
chore: JwtService 인증 허가 메소드 소셜 로그인 분기 처리 username 변경 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
hojeong2747 committed Nov 5, 2023
1 parent 68d7202 commit 98f0280
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public void saveVolunteerAuthentication(Volunteer volunteer) {
password = PasswordUtil.generateRandomPassword();

userDetailsUser = org.springframework.security.core.userdetails.User.builder()
.username(volunteer.getId() + volunteer.getRole().toString())
.username(volunteer.getSocialId())
.password(password)
.roles(volunteer.getRole().name())
.build();
Expand Down

0 comments on commit 98f0280

Please sign in to comment.