From 86c5c5fa18f194de9ca431c196b705ecef190486 Mon Sep 17 00:00:00 2001 From: Goathoon Date: Wed, 11 Oct 2023 16:02:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20non=20social=EB=A1=9C=20=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=EA=B0=80=EC=9E=85=EC=8B=9C=20=EB=AA=A8=EB=93=A0=20?= =?UTF-8?q?=ED=9A=8C=EC=9B=90=20=EC=9D=B4=EB=A9=94=EC=9D=BC=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=20=EA=B2=80=EC=82=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Funssion/Inforum/domain/member/service/MemberService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/Funssion/Inforum/domain/member/service/MemberService.java b/src/main/java/Funssion/Inforum/domain/member/service/MemberService.java index 2fdf507f..60eb197b 100644 --- a/src/main/java/Funssion/Inforum/domain/member/service/MemberService.java +++ b/src/main/java/Funssion/Inforum/domain/member/service/MemberService.java @@ -33,7 +33,6 @@ import org.springframework.transaction.annotation.Transactional; import org.springframework.web.multipart.MultipartFile; -import java.util.List; import java.io.IOException; import java.util.Optional; import java.util.UUID; @@ -133,7 +132,7 @@ public ValidatedDto isValidName(String username) { } public ValidatedDto isValidEmail(String email){ - boolean isEmailAvailable = memberRepository.findNonSocialMemberByEmail(email).isEmpty(); + boolean isEmailAvailable = memberRepository.findNonSocialMemberByEmail(email).isEmpty() && memberRepository.findSocialMemberByEmail(email).isEmpty(); String message = isEmailAvailable ? "사용 가능한 이메일입니다." : "이미 사용 중인 이메일입니다."; return new ValidatedDto(isEmailAvailable,message); }