Skip to content

Commit

Permalink
fix: response 메시지 영어로 바꿈.
Browse files Browse the repository at this point in the history
response 객체 인코딩 문제로 response 메시지를 영어로 바꾸었음.
  • Loading branch information
JisooPyo committed Oct 29, 2023
1 parent 5d5ba44 commit 529d348
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.fasterxml.jackson.databind.ObjectMapper;
import com.snsIntegrationFeedService.common.dto.ApiResponseDto;
import com.snsIntegrationFeedService.user.dto.LoginRequestDto;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -57,7 +57,7 @@ protected void successfulAuthentication(HttpServletRequest request,
response.setStatus(200);
response.setContentType("application/json");
String result = new ObjectMapper().writeValueAsString(
new ApiResponseDto(HttpStatus.OK.value(), "로그인에 성공하였습니다.")
new ApiResponseDto(HttpStatus.OK.value(), "login success")
);

response.getOutputStream().print(result);
Expand All @@ -72,7 +72,7 @@ protected void unsuccessfulAuthentication(HttpServletRequest request,
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
response.setContentType("application/json");
String result = new ObjectMapper().writeValueAsString(
new ApiResponseDto(HttpStatus.BAD_REQUEST.value(), "로그인에 실패하였습니다.")
new ApiResponseDto(HttpStatus.BAD_REQUEST.value(), "login failure")
);

response.getOutputStream().print(result);
Expand Down

0 comments on commit 529d348

Please sign in to comment.