Skip to content

Commit

Permalink
Revert "비번로그인 추가 ㅋㅋ"
Browse files Browse the repository at this point in the history
This reverts commit 48d3f9d.
  • Loading branch information
HyungJu committed Sep 30, 2024
1 parent 48d3f9d commit 38c9ca1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import com.ggsdh.backend.global.security.exception.AuthError
enum class ProviderType(val provider: String) {
KAKAO("kakao"),
APPLE("apple"),
DUMMY("dummy"),
PASSWORD("password")
DUMMY("dummy")
;

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ class MemberIdentificationRepository(
memberIdentification.sub!!,
)

ProviderType.PASSWORD ->
memberIdentificationJpaRepository.findBySub(
memberIdentification.sub!!,
)

ProviderType.DUMMY -> TODO()
}?.member
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@ package com.ggsdh.backend.auth.infrastructure
import com.ggsdh.backend.auth.domain.MemberIdentificationService
import com.ggsdh.backend.auth.domain.constants.ProviderType
import com.ggsdh.backend.auth.infrastructure.apple.AppleUserIdentificationService
import com.ggsdh.backend.auth.infrastructure.kakao.PasswordMemberIdentificationService
import com.ggsdh.backend.auth.infrastructure.kakao.KakaoMemberIdentificationService
import org.springframework.stereotype.Service

@Service
class MemberIdentificationServiceFactory(
private val kakaoMemberIdentificationService: PasswordMemberIdentificationService,
private val kakaoMemberIdentificationService: KakaoMemberIdentificationService,
private val appleUserIdentificationService: AppleUserIdentificationService,
private val passwordMemberIdentificationService: PasswordMemberIdentificationService,
) {
fun create(providerType: ProviderType): MemberIdentificationService =
when (providerType) {
ProviderType.KAKAO -> kakaoMemberIdentificationService
ProviderType.APPLE -> appleUserIdentificationService
ProviderType.PASSWORD -> passwordMemberIdentificationService
ProviderType.DUMMY -> TODO()
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ enum class GlobalError(
INVALID_REQUEST_PARAM("요청 파라미터가 유효하지 않습니다.", HttpStatus.BAD_REQUEST, "G_002"),
INTERNAL_SERVER_ERROR("서버 내부 오류가 발생했습니다.", HttpStatus.INTERNAL_SERVER_ERROR, "G_003"),
PHOTOBOOK_ALREADY_HAS_PHOTOTICKET("이미 포토티켓이 존재합니다.", HttpStatus.BAD_REQUEST, "P_002"),
PASSWORD_NOT_MATCH("비밀번호가 일치하지 않습니다.", HttpStatus.BAD_REQUEST, "P_003"),
}

0 comments on commit 38c9ca1

Please sign in to comment.