Skip to content

Commit

Permalink
chore :: remove check pw
Browse files Browse the repository at this point in the history
  • Loading branch information
jyk1029 committed Jan 20, 2024
1 parent ea725b8 commit 204676b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ data class SignUpRequest(
message = "소문자, 숫자, 특수문자가 포함되어야 하며 5자~30자 사이여야 합니다."
)
val password: String,
val checkPassword: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -30,8 +29,5 @@ class SignUpService(
if (userFacade.checkNicknameExist(request.nickname)) {
throw AlreadyNicknameException
}
if (!request.password.equals(request.checkPassword)) {
throw UnmatchedPasswordException
}
}
}

0 comments on commit 204676b

Please sign in to comment.