Skip to content

Commit f1ac92d

Browse files
committed
refactor : 닉네임 한글로 랜덤 생성
1 parent 5ea4862 commit f1ac92d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/ezcode/codetest/domain/user/service/CustomOAuth2UserService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2Authentic
5757
log.info("newUser: {} 새로운 유저", newUser);
5858
try {
5959
userRepository.createUser(newUser);
60+
} catch (IllegalStateException e) {
61+
throw new OAuth2AuthenticationException("닉네임 생성 실패입니다");
6062
} catch (Exception e) {
6163
log.error("OAuth 사용자 생성 실패 : {}", e.getMessage());
6264
throw new OAuth2AuthenticationException("사용자 생성 실패입니다");

0 commit comments

Comments
 (0)