🎨 jwt + shiro
This commit is contained in:
parent
7d5176a243
commit
f06e370d83
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user