Skip to content

Commit

Permalink
Merge pull request #19 from nhnacademy-be6-5ritang/feature/login
Browse files Browse the repository at this point in the history
feat: 비밀번호 에러 추가
  • Loading branch information
taehwan01 authored Jul 30, 2024
2 parents 9d98bd5 + 9b7771f commit 7ec8535
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ protected void successfulAuthentication(HttpServletRequest request, HttpServletR
protected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response,
AuthenticationException failed) throws IOException, ServletException {
response.setStatus(HttpStatus.UNAUTHORIZED.value());
response.setContentType("application/json");
response.setCharacterEncoding("UTF-8");
String errorMessage = "{\"message\": \"비밀번호가 틀렸습니다\"}";
response.getWriter().write(errorMessage);
}

private void saveRefreshToken(Long userId, String refreshToken, Long expiresIn) {
Expand Down

0 comments on commit 7ec8535

Please sign in to comment.