Skip to content

Commit

Permalink
fix: provider를 통해 member를 조회하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jschoi-96 committed Dec 4, 2024
1 parent 086449f commit a12de68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2Authentic

String email = getEmail(oauth2Response);
String provider = getProvider(oauth2Response);
Member findMember = memberRepository.findByEmail(email).orElse(null);
Member findMember = memberRepository.findByEmail(provider + "_" + email).orElse(null);

if (findMember == null) {
String encodedPassword = passwordEncoder().encode(oauth2Password);
Expand Down

0 comments on commit a12de68

Please sign in to comment.