Skip to content

Commit

Permalink
#5 typo: Exception message typo 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JoongHyun-Kim committed Jan 24, 2024
1 parent a5a1e96 commit 4ce5970
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ public enum BaseResponseStatus {
* 2000: Request 오류
*/
// users(2000-2099)
INVALID_USER_IDX(false, 2000, "잘못된 user Idx 입니다."),
INVALID_USER_IDX(false, 2000, "잘못된 user Idx입니다."),
DUPLICATED_LOGIN_ID(false, 2001, "이미 사용중인 아이디입니다."),
DUPLICATED_NICKNAME(false, 2002, "이미 사용중인 닉네임입니다."),
UNMATCHED_PASSWORD(false, 2003, "비밀번호가 일치하지 않습니다."),
INVALIID_PASSWORD(false, 2004, "비민번호가 잘못되었습니다."),
INVALID_PASSWORD(false, 2004, "비민번호가 잘못되었습니다."),
INVALID_LOGIN_ID(false, 2005, "잘못된 아이디입니다."),

// produce(2100-2199)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public boolean checkNickname(String nickname) {
public LoginResponse login(LoginRequest loginRequest) throws BaseException {
try {
User user = userRepository.findByLoginId(loginRequest.loginId()).orElseThrow(() -> new BaseException(INVALID_USER_IDX));
if(!encoder.matches(loginRequest.password(), user.getPassword())) throw new BaseException(INVALIID_PASSWORD);
if(!encoder.matches(loginRequest.password(), user.getPassword())) throw new BaseException(INVALID_PASSWORD);

String accessToken = authService.generateAccessToken(user);
user.updateAccessToken(accessToken);
Expand Down

0 comments on commit 4ce5970

Please sign in to comment.