File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/com/example/log4u/domain/user/controller Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ public ResponseEntity<String> loginAsDevTest(
8585 public ResponseEntity <UserProfileResponseDto > getMyProfile (
8686 @ AuthenticationPrincipal CustomOAuth2User customOAuth2User
8787 ) {
88- // if (customOAuth2User.getRole().equals("ROLE_GUEST")) {
89- // return ResponseEntity.status(HttpStatus.FOUND)
90- // .location(URI.create(UrlConstants.PROFILE_CREATE_URL))
91- // .build();
92- // }
88+ if (customOAuth2User .getRole ().equals ("ROLE_GUEST" )) {
89+ return ResponseEntity .status (HttpStatus .FOUND )
90+ .location (URI .create (UrlConstants .PROFILE_CREATE_URL ))
91+ .build ();
92+ }
9393
9494 UserProfileResponseDto userProfileResponseDto =
9595 userService .getMyProfile (customOAuth2User .getUserId ());
You can’t perform that action at this time.
0 commit comments