mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 13:57:23 -04: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
0a337449f4
2 changed files with 2 additions and 1 deletions
1
changelog.d/return-correct-oauth-error.fix
Normal file
1
changelog.d/return-correct-oauth-error.fix
Normal file
|
@ -0,0 +1 @@
|
|||
Return 401 for invalid oauth credentials
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue