File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
src/main/java/com/example/log4u Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments