mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-18 09:42:40 +00:00
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:
commit
7fe3e4a825
|
@ -623,6 +623,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
|
||||
|
|
Loading…
Reference in a new issue