We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8b72c4 commit 436e8f4Copy full SHA for 436e8f4
1 file changed
src/main/java/com/back/web7_9_codecrete_be/domain/auth/service/AuthService.java
@@ -85,6 +85,9 @@ public LoginResponse login(LoginRequest req) {
85
86
// 이메일 인증코드 전송
87
public void sendVerificationCode(String email) {
88
+ if (userRepository.existsByEmail(email)) {
89
+ throw new BusinessException(AuthErrorCode.EMAIL_DUPLICATED);
90
+ }
91
emailService.createAndSendVerificationCode(email);
92
}
93
0 commit comments