diff --git a/src/main/kotlin/com/example/boheom/domain/user/exception/UnmatchedPasswordException.kt b/src/main/kotlin/com/example/boheom/domain/user/exception/UnmatchedPasswordException.kt deleted file mode 100644 index dc582b9..0000000 --- a/src/main/kotlin/com/example/boheom/domain/user/exception/UnmatchedPasswordException.kt +++ /dev/null @@ -1,6 +0,0 @@ -package com.example.boheom.domain.user.exception - -import com.example.boheom.global.error.exception.BoheomException -import com.example.boheom.global.error.exception.ErrorCode.* - -object UnmatchedPasswordException : BoheomException(UNMATCHED_PASSWORD) \ No newline at end of file diff --git a/src/main/kotlin/com/example/boheom/domain/user/presentation/dto/request/SignUpRequest.kt b/src/main/kotlin/com/example/boheom/domain/user/presentation/dto/request/SignUpRequest.kt index 147a391..cd12228 100644 --- a/src/main/kotlin/com/example/boheom/domain/user/presentation/dto/request/SignUpRequest.kt +++ b/src/main/kotlin/com/example/boheom/domain/user/presentation/dto/request/SignUpRequest.kt @@ -20,5 +20,4 @@ data class SignUpRequest( message = "소문자, 숫자, 특수문자가 포함되어야 하며 5자~30자 사이여야 합니다." ) val password: String, - val checkPassword: String ) diff --git a/src/main/kotlin/com/example/boheom/domain/user/service/SignUpService.kt b/src/main/kotlin/com/example/boheom/domain/user/service/SignUpService.kt index 0d7d2e5..3b28fd0 100644 --- a/src/main/kotlin/com/example/boheom/domain/user/service/SignUpService.kt +++ b/src/main/kotlin/com/example/boheom/domain/user/service/SignUpService.kt @@ -4,7 +4,6 @@ import com.example.boheom.domain.user.domain.User import com.example.boheom.domain.user.domain.repository.UserRepository import com.example.boheom.domain.user.exception.AlreadyAccountIdException import com.example.boheom.domain.user.exception.AlreadyNicknameException -import com.example.boheom.domain.user.exception.UnmatchedPasswordException import com.example.boheom.domain.user.facade.UserFacade import com.example.boheom.domain.user.presentation.dto.request.SignUpRequest import org.springframework.security.crypto.password.PasswordEncoder @@ -30,8 +29,5 @@ class SignUpService( if (userFacade.checkNicknameExist(request.nickname)) { throw AlreadyNicknameException } - if (!request.password.equals(request.checkPassword)) { - throw UnmatchedPasswordException - } } } \ No newline at end of file