Compare commits
No commits in common. "8ad13c289e1afa45e866a1275130aadc1016c91d" and "7577f48a09f66562921d3d8cf3d59f6b90e4e8cb" have entirely different histories.
8ad13c289e
...
7577f48a09
|
@ -567,10 +567,7 @@ class MemberService(
|
|||
@Transactional
|
||||
fun signOut(signOutRequest: SignOutRequest, user: User) {
|
||||
val member = repository.findByEmail(user.username) ?: throw SodaException("로그인 정보를 확인해주세요.")
|
||||
if (
|
||||
member.provider == MemberProvider.EMAIL &&
|
||||
!passwordEncoder.matches(signOutRequest.password, member.password)
|
||||
) {
|
||||
if (!passwordEncoder.matches(signOutRequest.password, member.password)) {
|
||||
throw SodaException("비밀번호가 일치하지 않습니다.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue