Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] #137 - 네이버 로그인시 휴대전화번호를 받는 경우 사업자 등록증이 필요하기 때문에 제외 #161

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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