Skip to content

Commit

Permalink
Merge pull request #19 from Timetris-Trendithon/mainPageError
Browse files Browse the repository at this point in the history
💩Fix: 리다이렉트 주소 변경
  • Loading branch information
jiinkyung authored Feb 19, 2024
2 parents 8872a17 + e28a669 commit ae688b0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.util.UriComponentsBuilder;

import java.io.IOException;

Expand Down Expand Up @@ -48,8 +49,8 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
request.getSession().setAttribute("name", userName);
request.getSession().setAttribute("picture", imgUrl);

response.sendRedirect("/main");
//response.sendRedirect(UriComponentsBuilder.fromUriString("http://localhost:3000/").toUriString());
//response.sendRedirect("/main");
response.sendRedirect(UriComponentsBuilder.fromUriString("http://localhost:3000/").toUriString());

} catch (Exception e) {
throw e;
Expand Down

0 comments on commit ae688b0

Please sign in to comment.