Skip to content

Commit

Permalink
Merge pull request #177 from twenty-three-23/feature/TT-215-credentia…
Browse files Browse the repository at this point in the history
…l-nujll

TT-215 credential이 null일 때 처리
  • Loading branch information
snacktime81 authored Jul 10, 2024
2 parents e154e28 + ea03d9e commit d99b808
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer m

if (token.startsWith(BEARER)) {
credential = token.substring(BEARER.length());
if (credential.isEmpty()) {
throw new UserAlreadyExistException("로그인을 다시 해주세요");
}
} else {
throw new IllegalArgumentException("token의 type이 올바르지 않습니다.");
}
Expand Down

0 comments on commit d99b808

Please sign in to comment.