Skip to content

Commit

Permalink
πŸ› fix: 둜그인 μ—λŸ¬μ²˜λ¦¬ μ—λŸ¬
Browse files Browse the repository at this point in the history
  • Loading branch information
jinho7 committed Jul 9, 2024
1 parent 286f4af commit f61673f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)
resolvers.add(authUserArgumentResolver);
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public UserDetails loadUserByUsername(String email) throws UsernameNotFoundExcep
User user = userEntity.get();
return new PrincipalDetails(user.getEmail(),user.getPassword(), user.getRole());
}
throw new CustomException(ErrorCode.USER_NOT_FOUND);
throw new UsernameNotFoundException("μ˜¬λ°”λ₯΄μ§€ μ•Šμ€ email");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public enum ErrorCode implements BaseErrorCode {
UNABLE_TO_SEND_EMAIL(HttpStatus.INTERNAL_SERVER_ERROR, "EMAIL500_0", "이메일을 μ „μ†‘ν•˜λŠ” 도쀑, μ—λŸ¬κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€."),
NO_SUCH_ALGORITHM(HttpStatus.INTERNAL_SERVER_ERROR, "EMAIL500_1", "이메일 인증 μ½”λ“œλ₯Ό 생성할 수 μ—†μŠ΅λ‹ˆλ‹€."),

DATA_NOT_FOUND(HttpStatus.BAD_REQUEST, "USER404_0", "ν•΄λ‹Ή 데이터λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€."),
USER_NOT_FOUND(HttpStatus.BAD_REQUEST, "USER404_1", "μ‚¬μš©μžκ°€ μ—†μŠ΅λ‹ˆλ‹€."),
DATA_NOT_FOUND(HttpStatus.NOT_FOUND, "USER404_0", "ν•΄λ‹Ή 데이터λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€."),
USER_NOT_FOUND(HttpStatus.NOT_FOUND, "USER404_1", "μ‚¬μš©μžκ°€ μ—†μŠ΅λ‹ˆλ‹€."),
EMAIL_NOT_EXIST(HttpStatus.BAD_REQUEST, "USER400_2", "이메일은 ν•„μˆ˜ μž…λ‹ˆλ‹€."),
PASSWORD_NOT_EQUAL(HttpStatus.BAD_REQUEST, "USER400_3", "λΉ„λ°€λ²ˆν˜Έκ°€ μΌμΉ˜ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€."),
CURRENT_PASSWORD_NOT_EQUAL(HttpStatus.BAD_REQUEST, "USER400_4", "ν˜„μž¬ λΉ„λ°€λ²ˆν˜Έκ°€ μΌμΉ˜ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€."),
Expand Down

0 comments on commit f61673f

Please sign in to comment.