Compare commits
No commits in common. "bbf3fc04b641cd1d04796b629f0d039840543c26" and "3e4bfef14e577d19c106257f9348eb7f44f14678" have entirely different histories.
bbf3fc04b6
...
3e4bfef14e
|
@ -1,3 +0,0 @@
|
||||||
package kr.co.vividnext.sodalive.member.auth
|
|
||||||
|
|
||||||
data class AuthResponse(val gender: Int)
|
|
|
@ -73,7 +73,7 @@ class AuthService(
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
fun authenticate(certificate: AuthVerifyCertificate, memberId: Long): AuthResponse {
|
fun authenticate(certificate: AuthVerifyCertificate, memberId: Long) {
|
||||||
val memberIds = repository.getActiveMemberIdsByDi(di = certificate.di)
|
val memberIds = repository.getActiveMemberIdsByDi(di = certificate.di)
|
||||||
if (memberIds.size >= 3) {
|
if (memberIds.size >= 3) {
|
||||||
throw SodaException(
|
throw SodaException(
|
||||||
|
@ -96,9 +96,8 @@ class AuthService(
|
||||||
auth.member = member
|
auth.member = member
|
||||||
|
|
||||||
repository.save(auth)
|
repository.save(auth)
|
||||||
return AuthResponse(gender = certificate.gender)
|
|
||||||
} else {
|
} else {
|
||||||
throw SodaException("${nowYear - 19}년 1월 1일 이전 출생자만 본인인증이 가능합니다.")
|
throw SodaException("2005년 1월 1일 이전 출생자만 본인인증이 가능합니다.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue