Skip to content

Commit 358cbff

Browse files
committed
fix: 프로필 생성 로직 수정
1 parent 9c56110 commit 358cbff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/example/log4u/common/constants/UrlConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ public class UrlConstants {
77
public static final String FRONT_VERCEL_ORIGIN = "https://fe-log4u.vercel.app";
88

99
// 임시로 메인
10-
public static final String PROFILE_CREATE_URL = FRONT_VERCEL_ORIGIN + "/";
11-
public static final String LOGIN_URL = FRONT_VERCEL_ORIGIN + "login";
10+
public static final String PROFILE_CREATE_URL = FRONT_VERCEL_ORIGIN + "/profile/make";
11+
public static final String LOGIN_URL = FRONT_VERCEL_ORIGIN + "/login";
1212

1313
// 내 프로필 페이지가 메인
1414
public static final String MAIN_URL = FRONT_VERCEL_ORIGIN + "me";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private void setCookieAndSaveRefreshToken(
8484
private void redirectTo(HttpServletResponse response, CustomOAuth2User customOAuth2User) throws IOException {
8585
switch (customOAuth2User.getRole()) {
8686
// 프론트 페이지 부재로 임시 비활성화
87-
case "ROLE_GUEST" -> response.sendRedirect(FRONT_VERCEL_ORIGIN);
87+
case "ROLE_GUEST" -> response.sendRedirect(PROFILE_CREATE_URL);
8888
case "ROLE_USER" -> response.sendRedirect(FRONT_VERCEL_ORIGIN);
8989
default -> {
9090
// 로그인이 필요한 경우 401

0 commit comments

Comments
 (0)