Skip to content

Commit a02b960

Browse files
committed
[refactor/#189] isProfileImageAgreed 수정
1 parent e42693a commit a02b960

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/at/mateball/domain/auth/api/dto/kakao/KakaoUserRes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/main/java/at/mateball/domain/auth/core/service/LoginService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)