Compare commits

..

No commits in common. "8ad13c289e1afa45e866a1275130aadc1016c91d" and "7577f48a09f66562921d3d8cf3d59f6b90e4e8cb" have entirely different histories.

1 changed files with 1 additions and 4 deletions

View File

@ -567,10 +567,7 @@ class MemberService(
@Transactional @Transactional
fun signOut(signOutRequest: SignOutRequest, user: User) { fun signOut(signOutRequest: SignOutRequest, user: User) {
val member = repository.findByEmail(user.username) ?: throw SodaException("로그인 정보를 확인해주세요.") val member = repository.findByEmail(user.username) ?: throw SodaException("로그인 정보를 확인해주세요.")
if ( if (!passwordEncoder.matches(signOutRequest.password, member.password)) {
member.provider == MemberProvider.EMAIL &&
!passwordEncoder.matches(signOutRequest.password, member.password)
) {
throw SodaException("비밀번호가 일치하지 않습니다.") throw SodaException("비밀번호가 일치하지 않습니다.")
} }