mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
[#923] Minor semantic adjustment.
This commit is contained in:
parent
c3f12cf3c3
commit
128aae05f3
1 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,9 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
|
||||
def authorize(conn, params), do: do_authorize(conn, params)
|
||||
|
||||
defp do_authorize(conn, %{"authorization" => auth_attrs}) do
|
||||
defp do_authorize(conn, %{"authorization" => auth_attrs}), do: do_authorize(conn, auth_attrs)
|
||||
|
||||
defp do_authorize(conn, auth_attrs) do
|
||||
app = Repo.get_by(App, client_id: auth_attrs["client_id"])
|
||||
available_scopes = (app && app.scopes) || []
|
||||
scopes = oauth_scopes(auth_attrs, nil) || available_scopes
|
||||
|
@ -60,8 +62,6 @@ defmodule Pleroma.Web.OAuth.OAuthController do
|
|||
})
|
||||
end
|
||||
|
||||
defp do_authorize(conn, auth_attrs), do: do_authorize(conn, %{"authorization" => auth_attrs})
|
||||
|
||||
def create_authorization(
|
||||
conn,
|
||||
%{"authorization" => _} = params,
|
||||
|
|
Loading…
Reference in a new issue