Skip to content

Commit

Permalink
chore: nickname -> loginId ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
zzdh8 committed Jun 27, 2024
1 parent b9d0aeb commit 9127e34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class CustomAuthenticationSuccessHandler implements AuthenticationSuccess
private final UserRepository userRepository;
@Override
public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
String nickname = userRepository.findByLoginId(authentication.getName()).get().getNickname();
Cookie cookie = new Cookie("nickname", nickname);
String loginId = userRepository.findByLoginId(authentication.getName()).get().getLoginId();
Cookie cookie = new Cookie("loginId", loginId);
cookie.setHttpOnly(false);
cookie.setSecure(true);
response.addCookie(cookie);
Expand Down

0 comments on commit 9127e34

Please sign in to comment.