Merge pull request #37 from hiparker/development

fix: 修复登录过程中验证Jwt异常后 无法正常拦截问题
pull/38/head 2.1.4
Anthony Parker 1 year ago committed by GitHub
commit e59dd0c8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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