Skip to content

Commit

Permalink
Merge pull request #223 from Gamegoo-repo/feat/220
Browse files Browse the repository at this point in the history
[feat/220] ํƒˆํ‡ดํ•œ ์‚ฌ์šฉ์ž๋ผ๋Š” error ๋ณด๋‚ด๊ธฐ
  • Loading branch information
rimi3226 authored Sep 19, 2024
2 parents e2c1eed + 56d4492 commit 69ffa43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
public interface MemberRepository extends JpaRepository<Member, Long> {
Optional<Member> findByEmail(String email);

Optional<Member> findByGameName(String gameName);

Optional<Member> findById(Long id);

Optional<Member> findByRefreshToken(String refresh_token);
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/gamegoo/service/member/AuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public Member joinMember(String email, String password, String gameName, String

// ์ค‘๋ณต ํ™•์ธํ•˜๊ธฐ
if (memberRepository.existsByEmail(email)) {
Member member = memberRepository.findByEmail(email).get();
if (member.getBlind()) {
throw new MemberHandler(ErrorStatus.USER_DEACTIVATED);
}
throw new MemberHandler(ErrorStatus.MEMBER_CONFLICT);
}

Expand Down

0 comments on commit 69ffa43

Please sign in to comment.