aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/oauth/oauth_controller.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-04-21 09:43:53 +0200
committerlain <lain@soykaf.club>2018-04-21 09:43:53 +0200
commit9e6ae447294d055af6add2efa9aca0024a252fe1 (patch)
tree264cf7087c11126fb0bf3675a05c436a5243aa10 /lib/pleroma/web/oauth/oauth_controller.ex
parentce7618f6f69aa98ab727be9efc45f51e0c18ebb8 (diff)
downloadpleroma-9e6ae447294d055af6add2efa9aca0024a252fe1.tar.gz
Formatting fixes.
Diffstat (limited to 'lib/pleroma/web/oauth/oauth_controller.ex')
-rw-r--r--lib/pleroma/web/oauth/oauth_controller.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex
index 6297b7bae..11dc1806f 100644
--- a/lib/pleroma/web/oauth/oauth_controller.ex
+++ b/lib/pleroma/web/oauth/oauth_controller.ex
@@ -63,7 +63,8 @@ defmodule Pleroma.Web.OAuth.OAuthController do
client_secret: params["client_secret"]
),
fixed_token = fix_padding(params["code"]),
- %Authorization{} = auth <- Repo.get_by(Authorization, token: fixed_token, app_id: app.id),
+ %Authorization{} = auth <-
+ Repo.get_by(Authorization, token: fixed_token, app_id: app.id),
{:ok, token} <- Token.exchange_token(app, auth) do
response = %{
token_type: "Bearer",