Skip to content

Commit

Permalink
Merge pull request #89 from KNU-HAEDAL-Website/fix-login-without-appr…
Browse files Browse the repository at this point in the history
…ove-issue-88

Fix: 회원가입 승인 없이 로그인 되는 버그
  • Loading branch information
tfer2442 authored Aug 28, 2024
2 parents 3b6543d + 5e7a898 commit bed55fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public UserDetails loadUserByUsername(String id) throws UsernameNotFoundExceptio
User user = userRepository.findById(id)
.orElseThrow(() -> new UsernameNotFoundException(ErrorCode.FAILED_LOGIN.getMessage()));

if (user.getUserStatus() == UserStatus.DELETED) {
if (user.getUserStatus() == UserStatus.DELETED || user.getUserStatus() == UserStatus.INACTIVE) {
throw new UsernameNotFoundException(ErrorCode.FAILED_LOGIN.getMessage());
}

Expand Down

0 comments on commit bed55fb

Please sign in to comment.