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