Изменен status code при неверном пароле
This commit is contained in:
parent
3f90380fa6
commit
a7323bb343
@ -14,7 +14,7 @@ public class NoPopupBasicAuthenticationEntryPoint implements AuthenticationEntry
|
|||||||
public void commence(HttpServletRequest request, HttpServletResponse response,
|
public void commence(HttpServletRequest request, HttpServletResponse response,
|
||||||
AuthenticationException authException) throws IOException, ServletException {
|
AuthenticationException authException) throws IOException, ServletException {
|
||||||
|
|
||||||
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());
|
response.sendError(HttpServletResponse.SC_FORBIDDEN, authException.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user