From 850ac4a72518dc10c89302b81c2e0ed4669a20e2 Mon Sep 17 00:00:00 2001 From: odls Date: Mon, 2 Dec 2024 14:55:02 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20#137=20-=20=EB=84=A4=EC=9D=B4=EB=B2=84?= =?UTF-8?q?=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=EC=8B=9C=20=ED=9C=B4=EB=8C=80?= =?UTF-8?q?=EC=A0=84=ED=99=94=EB=B2=88=ED=98=B8=EB=A5=BC=20=EB=B0=9B?= =?UTF-8?q?=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20=EC=82=AC=EC=97=85=EC=9E=90=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=EC=A6=9D=EC=9D=B4=20=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20=EB=95=8C=EB=AC=B8=EC=97=90=20=EC=A0=9C?= =?UTF-8?q?=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/wooribound/global/security/dto/NaverResponse.java | 8 -------- .../wooribound/global/security/dto/OAuth2Response.java | 2 -- .../security/userdetail/wbuser/WbUserDetailService.java | 2 -- 3 files changed, 12 deletions(-) diff --git a/src/main/java/com/wooribound/global/security/dto/NaverResponse.java b/src/main/java/com/wooribound/global/security/dto/NaverResponse.java index 0645457..5671831 100644 --- a/src/main/java/com/wooribound/global/security/dto/NaverResponse.java +++ b/src/main/java/com/wooribound/global/security/dto/NaverResponse.java @@ -72,12 +72,4 @@ public Date getBirth() { } - @Override - public String getPhone() { - // mobile이 null일 경우 null 반환 - Object mobile = attribute.get("mobile"); - return mobile != null ? mobile.toString() : null; - } - - } \ No newline at end of file diff --git a/src/main/java/com/wooribound/global/security/dto/OAuth2Response.java b/src/main/java/com/wooribound/global/security/dto/OAuth2Response.java index 5bc858c..815eb04 100644 --- a/src/main/java/com/wooribound/global/security/dto/OAuth2Response.java +++ b/src/main/java/com/wooribound/global/security/dto/OAuth2Response.java @@ -17,6 +17,4 @@ public interface OAuth2Response { Gender getGender(); Date getBirth(); - - String getPhone(); } diff --git a/src/main/java/com/wooribound/global/security/userdetail/wbuser/WbUserDetailService.java b/src/main/java/com/wooribound/global/security/userdetail/wbuser/WbUserDetailService.java index 8d3cc97..3d3fbc5 100644 --- a/src/main/java/com/wooribound/global/security/userdetail/wbuser/WbUserDetailService.java +++ b/src/main/java/com/wooribound/global/security/userdetail/wbuser/WbUserDetailService.java @@ -47,7 +47,6 @@ public OAuth2User loadUser(OAuth2UserRequest request) throws OAuth2Authenticatio String userName = oAuth2Response.getName(); String userEmail = oAuth2Response.getEmail(); Gender gender = oAuth2Response.getGender(); - String phone = oAuth2Response.getPhone(); Date birth = oAuth2Response.getBirth(); @@ -85,7 +84,6 @@ public OAuth2User loadUser(OAuth2UserRequest request) throws OAuth2Authenticatio // gender에 대한 null 체크 및 변환 newWbUser.setGender(gender); - newWbUser.setPhone(phone); newWbUser.setBirth(birth); System.out.println("새 유저 저장");