Skip to content

Commit

Permalink
Merge pull request #161 from WooRibound/feature/#137-forprod
Browse files Browse the repository at this point in the history
[feat] #137 - 네이버 로그인시 휴대전화번호를 받는 경우 사업자 등록증이 필요하기 때문에 제외
  • Loading branch information
cshharry authored Dec 2, 2024
2 parents 55e941b + 850ac4a commit f5e0662
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ public interface OAuth2Response {
Gender getGender();

Date getBirth();

String getPhone();
}
Original file line number Diff line number Diff line change
Expand Up @@ -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();


Expand Down Expand Up @@ -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("새 유저 저장");
Expand Down

0 comments on commit f5e0662

Please sign in to comment.