From a12de6889f79375b537e561ec7eeb8ca5e4d5ac1 Mon Sep 17 00:00:00 2001 From: jschoi-96 Date: Thu, 5 Dec 2024 01:12:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20provider=EB=A5=BC=20=ED=86=B5=ED=95=B4?= =?UTF-8?q?=20member=EB=A5=BC=20=EC=A1=B0=ED=9A=8C=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global/oauth2/service/CustomOAuth2UserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java b/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java index 9b05a7d51..af4bad147 100644 --- a/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java +++ b/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java @@ -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);