Skip to content

Commit c205238

Browse files
authored
Merge pull request #344 from MT-TEAM-Org/epic/inquirymail
fix: jwtauth logic
2 parents c5a4fed + 24ddc2c commit c205238

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ protected void unsuccessfulAuthentication(HttpServletRequest request, HttpServle
177177
String username = (String) request.getAttribute("username");
178178
if (redisService.isAdminLoginAllowed("LOGIN_ADMIN", username)) {
179179
int count = redisService.getRequestCount("LOGIN_ADMIN", username);
180-
if(0>=(10-count)){
181-
sendErrorResponse(response, HttpStatus.UNAUTHORIZED,
182-
"block");
183-
return;
184-
}
185180
sendErrorResponse(response, HttpStatus.UNAUTHORIZED,
186181
"%s".formatted(String.valueOf(10 - count)));
187182
return;

0 commit comments

Comments
 (0)