From 9573d55710b9b8f8e4043f327eb4580c521f895a Mon Sep 17 00:00:00 2001 From: toychip Date: Fri, 6 Sep 2024 23:36:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=88=AC=ED=91=9C=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EB=AA=A8=EB=93=A0=20=ED=9A=8C=EC=9B=90=20=EC=A0=91=EA=B7=BC=20?= =?UTF-8?q?=EA=B0=80=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MemberAuthTokenAuthenticationProvider.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/src/main/kotlin/com/mashup/dojo/config/security/MemberAuthTokenAuthenticationProvider.kt b/api/src/main/kotlin/com/mashup/dojo/config/security/MemberAuthTokenAuthenticationProvider.kt index d6f1778..a9444ec 100644 --- a/api/src/main/kotlin/com/mashup/dojo/config/security/MemberAuthTokenAuthenticationProvider.kt +++ b/api/src/main/kotlin/com/mashup/dojo/config/security/MemberAuthTokenAuthenticationProvider.kt @@ -17,18 +17,18 @@ class MemberAuthTokenAuthenticationProvider( val memberId = jwtTokenService.getMemberId(authToken) ?: throw DojoException.of(AUTHENTICATION_FAILURE, "invalid token") val member = memberService.findMemberById(memberId) ?: throw DojoException.of(MEMBER_NOT_FOUND) - notAllowMember(member.fullName) + // notAllowMember(member.fullName) return MemberPrincipal(member) } - private fun notAllowMember(fullName: String) { - val dojo = listOf("한정민", "오예원", "박세원", "임준형", "이현재", "황태규", "최민석", "낭은영", "오시연") - - if (fullName !in dojo) { - throw DojoException.of(AUTHENTICATION_FAILURE, "You Are Not Dojo") - } - } + // private fun notAllowMember(fullName: String) { + // val dojo = listOf("한정민", "오예원", "박세원", "임준형", "이현재", "황태규", "최민석", "낭은영", "오시연") + // + // if (fullName !in dojo) { + // throw DojoException.of(AUTHENTICATION_FAILURE, "You Are Not Dojo") + // } + // } } class MemberPrincipal(