Изменен status code при неверном пароле

This commit is contained in:
Daniil Makeev 2025-02-19 15:19:28 +03:00
parent 3f90380fa6
commit a7323bb343

View File

@ -14,7 +14,7 @@ public class NoPopupBasicAuthenticationEntryPoint implements AuthenticationEntry
public void commence(HttpServletRequest request, HttpServletResponse response,
AuthenticationException authException) throws IOException, ServletException {
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());
response.sendError(HttpServletResponse.SC_FORBIDDEN, authException.getMessage());
}
}