Merge branch 'fix-386' into 'develop'

Draft: invalid oauth credentials returns a 401, not a 400

Closes #386

See merge request pleroma/pleroma!3881
This commit is contained in:
Duponin 2025-03-20 15:41:05 +00:00
commit 49133118fd
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Return 401 for invalid oauth credentials

View file

@ -625,6 +625,6 @@ defmodule Pleroma.Web.OAuth.OAuthController do
end
defp render_invalid_credentials_error(conn) do
render_error(conn, :bad_request, "Invalid credentials")
render_error(conn, :unauthorized, "Unauthorized")
end
end