fix: 修复登录过程中验证Jwt异常后 无法正常拦截问题

pull/37/head
Parker 1 year ago
parent 9ddf9961bb
commit 6feaaca93a

@ -88,7 +88,8 @@ public class JwtAuthenticationTokenFilter extends OncePerRequestFilter {
return;
}catch (Exception e){
// 其他异常
AuthResultWrapper<?> customResultWrapper = AuthResultWrapper.getErrorResultWrapper();
AuthResultWrapper<?> customResultWrapper =
AuthResultWrapper.getCustomResultWrapper(AuthErrorCodeEnum.AUTH_AUTH_INVALID);
WebUtils.renderString(request, response, JSONUtil.toJsonStr(customResultWrapper));
return;
}

Loading…
Cancel
Save