Skip to content

Commit 411b0b2

Browse files
committed
fix: test error fix and jwt auth login fix
1 parent dc4c7ec commit 411b0b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/myteam/server/global/security/filter/JwtAuthenticationFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected void successfulAuthentication(HttpServletRequest request, HttpServletR
129129
log.warn("INACTIVE 상태인 경우 로그인이 불가능합니다");
130130
sendErrorResponse(response, HttpStatus.FORBIDDEN, "INACTIVE 상태인 경우 로그인이 불가능합니다");
131131
return;
132-
} else if (!status.equals(ACTIVE.name())||!status.equals(WARNED.name())) {
132+
} else if (!status.equals(ACTIVE.name())&&!status.equals(WARNED.name())) {
133133
log.warn("알 수 없는 유저 상태 코드 : " + status);
134134
sendErrorResponse(response, HttpStatus.FORBIDDEN, "알 수 없는 유저 상태 코드 : " + status);
135135
return;

src/test/java/org/myteam/server/admin/repository/DashBoardRepoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void createDate() {
129129
.builder()
130130
.admin(admin)
131131
.memberId(member.getPublicId())
132-
.memberStatus(MemberStatus.PENDING)
132+
.memberStatus(MemberStatus.WARNED)
133133
.build();
134134

135135
AdminChangeLog adminChangeLog2 = AdminChangeLog

0 commit comments

Comments
 (0)