From cf1e69b7a617cd0eca8ee61c591fbe35d316299e Mon Sep 17 00:00:00 2001 From: chanwoo7 Date: Sun, 25 Aug 2024 01:29:43 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=86=8C=EC=85=9C=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=EC=8B=9C=20=EC=84=B1=EB=B3=84=EC=9D=84=20G0?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=A0=80=EC=9E=A5=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/book/backend/domain/auth/service/AppleService.java | 1 + .../java/com/book/backend/domain/auth/service/KakaoService.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/book/backend/domain/auth/service/AppleService.java b/src/main/java/com/book/backend/domain/auth/service/AppleService.java index dcc6570b..103216dc 100644 --- a/src/main/java/com/book/backend/domain/auth/service/AppleService.java +++ b/src/main/java/com/book/backend/domain/auth/service/AppleService.java @@ -52,6 +52,7 @@ public LoginSuccessResponseDto appleLogin(String idToken) { newUser.setPassword("unused"); // 애플 로그인 사용자는 패스워드 사용하지 않음 newUser.setLoginId(null); // 애플 로그인 사용자는 loginId가 null newUser.setNickname(""); // 빈 문자열로 설정 + newUser.setGender(Gender.G0); user = newUser; } diff --git a/src/main/java/com/book/backend/domain/auth/service/KakaoService.java b/src/main/java/com/book/backend/domain/auth/service/KakaoService.java index 86466e95..582ec880 100644 --- a/src/main/java/com/book/backend/domain/auth/service/KakaoService.java +++ b/src/main/java/com/book/backend/domain/auth/service/KakaoService.java @@ -125,6 +125,7 @@ public LoginSuccessResponseDto kakaoLogin(String idToken) { newUser.setPassword("unused"); // 카카오 로그인 사용자는 패스워드 사용하지 않음 newUser.setLoginId(null); // 카카오 로그인 사용자는 loginId가 null newUser.setNickname(""); // 빈 문자열로 설정 + newUser.setGender(Gender.G0); user = newUser; }