parent
bfedc448af
commit
ad295564de
|
@ -23,6 +23,7 @@ class AuthController(private val service: AuthService) {
|
|||
|
||||
if (service.isBlockAuth(authenticateData)) {
|
||||
service.signOut(member.id!!)
|
||||
throw SodaException("운영정책을 위반하여 이용을 제한합니다.")
|
||||
} else {
|
||||
service.authenticate(authenticateData, member.id!!)
|
||||
}
|
||||
|
|
|
@ -27,8 +27,6 @@ class AuthService(
|
|||
@Value("\${bootpay.private-key}")
|
||||
private val bootpayPrivateKey: String
|
||||
) {
|
||||
private val blockMessage = "운영정책을 위반하여 이용을 제한합니다."
|
||||
|
||||
fun certificate(request: AuthVerifyRequest, memberId: Long): AuthVerifyCertificate {
|
||||
val bootpay = Bootpay(bootpayApplicationId, bootpayPrivateKey)
|
||||
|
||||
|
@ -66,13 +64,11 @@ class AuthService(
|
|||
val member = memberRepository.findByIdOrNull(memberId) ?: throw SodaException("로그인 정보를 확인해주세요.")
|
||||
member.isActive = false
|
||||
|
||||
val signOut = SignOut(reason = blockMessage)
|
||||
val signOut = SignOut(reason = "운영정책을 위반하여 이용을 제한합니다.")
|
||||
signOut.member = member
|
||||
signOutRepository.save(signOut)
|
||||
|
||||
memberService.logoutAll(memberId = memberId)
|
||||
|
||||
throw SodaException("운영정책을 위반하여 이용을 제한합니다.")
|
||||
}
|
||||
|
||||
@Transactional
|
||||
|
|
Loading…
Reference in New Issue