Skip to content

Commit 5496b17

Browse files
committed
refactor: 프로필 생성 로직 임시 비활성화
1 parent 25e1e8b commit 5496b17

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/main/java/com/example/log4u/common/oauth2/handler/OAuth2AuthenticationSuccessHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ private void setCookieAndSaveRefreshToken(
8383

8484
private void redirectTo(HttpServletResponse response, CustomOAuth2User customOAuth2User) throws IOException {
8585
switch (customOAuth2User.getRole()) {
86-
case "ROLE_GUEST" -> response.sendRedirect(PROFILE_CREATE_URL);
86+
// 프론트 페이지 부재로 임시 비활성화
87+
case "ROLE_GUEST" -> response.sendRedirect(FRONT_VERCEL_ORIGIN);
8788
case "ROLE_USER" -> response.sendRedirect(FRONT_VERCEL_ORIGIN);
8889
default -> {
8990
// 로그인이 필요한 경우 401

src/main/java/com/example/log4u/domain/user/controller/UserController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ public ResponseEntity<String> loginAsDevTest(
8282
public ResponseEntity<UserProfileResponseDto> getMyProfile(
8383
@AuthenticationPrincipal CustomOAuth2User customOAuth2User
8484
) {
85-
if (customOAuth2User.getRole().equals("ROLE_GUEST")) {
86-
return ResponseEntity.status(HttpStatus.FOUND)
87-
.location(URI.create(UrlConstants.PROFILE_CREATE_URL))
88-
.build();
89-
}
85+
// if (customOAuth2User.getRole().equals("ROLE_GUEST")) {
86+
// return ResponseEntity.status(HttpStatus.FOUND)
87+
// .location(URI.create(UrlConstants.PROFILE_CREATE_URL))
88+
// .build();
89+
// }
9090

9191
UserProfileResponseDto userProfileResponseDto =
9292
userService.getMyProfile(customOAuth2User.getUserId());

0 commit comments

Comments
 (0)