🎨 jwt + shiro

This commit is contained in:
ronger 2022-10-30 01:13:01 +08:00
parent 7d5176a243
commit f06e370d83

View File

@ -81,7 +81,7 @@ public class JwtFilter extends BasicHttpAuthenticationFilter {
protected boolean onAccessDenied(ServletRequest request, ServletResponse response) { protected boolean onAccessDenied(ServletRequest request, ServletResponse response) {
if (isLoginAttempt(request, response)) { if (isLoginAttempt(request, response)) {
try { try {
executeLogin(request, response); return executeLogin(request, response);
} catch (Exception e) { } catch (Exception e) {
onLoginFail(response); onLoginFail(response);
} }