test #74

Merged
klaus merged 10 commits from test into main 2023-11-09 11:18:20 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 1eeea16792 - Show all commits

View File

@ -58,6 +58,7 @@ class AuthService(
if (isBlockAuth(certificate)) { if (isBlockAuth(certificate)) {
signOut(member) signOut(member)
member.isActive = false
throw SodaException(blockMessage) throw SodaException(blockMessage)
} }
@ -96,9 +97,9 @@ class AuthService(
return blockAuthId != null && blockAuthId > 0 return blockAuthId != null && blockAuthId > 0
} }
private fun signOut(member: Member) { @Transactional()
fun signOut(member: Member) {
memberService.logoutAll(memberId = member.id!!) memberService.logoutAll(memberId = member.id!!)
member.isActive = false
val signOut = SignOut(reason = blockMessage) val signOut = SignOut(reason = blockMessage)
signOut.member = member signOut.member = member