File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/main/java/at/mateball/domain/auth Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public String extractProfileImageUrl() {
4646 }
4747
4848 public boolean isProfileImageAgreed () {
49- return kakaoAccount != null && kakaoAccount .profileImageNeedsAgreement ();
49+ return kakaoAccount != null && ! kakaoAccount .profileImageNeedsAgreement ();
5050 }
51+
5152}
Original file line number Diff line number Diff line change @@ -42,18 +42,16 @@ public LoginResult login(LoginCommand loginCommand) {
4242 throw new BusinessException (BusinessErrorCode .KAKAO_USER_INFO_FETCH_FAILED );
4343 }
4444
45- log .info ("카카오 유저 ID = {}" , kakaoUser .id ());
4645 if (kakaoUser .kakaoAccount () != null ) {
4746 log .info ("카카오 이메일 = {}" , kakaoUser .kakaoAccount ().email ());
4847 if (kakaoUser .kakaoAccount ().profile () != null ) {
49- log .info ("카카오 닉네임 = {}" , kakaoUser .kakaoAccount ().profile ().nickname ());
5048 log .info ("카카오 프로필 이미지 = {}" , kakaoUser .kakaoAccount ().profile ().profileImageUrl ());
5149 log .info ("카카오 썸네일 이미지 = {}" , kakaoUser .kakaoAccount ().profile ().thumbnailImageUrl ());
5250 log .info ("카카오 기본 이미지 여부 = {}" , kakaoUser .kakaoAccount ().profile ().isDefaultImage ());
5351 }
5452 log .info ("카카오 profile_image_needs_agreement = {}" , kakaoUser .kakaoAccount ().profileImageNeedsAgreement ());
5553 }
56-
54+
5755 User user = userRepository .findByKakaoUserId (kakaoUser .id ())
5856 .orElseGet (() -> userRepository .save (kakaoUser .toEntity ()));
5957
You can’t perform that action at this time.
0 commit comments