diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-09-16 11:37:55 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-09-16 11:37:55 +0200 |
commit | 56022936902a5ab738200ef1a04724ed96b79e22 (patch) | |
tree | 7cdff09a202a24c682798d6eaa771b6beeb0bbb9 /lib | |
parent | c36229c4aa3bd0ac49d9dcd589790f5c47470564 (diff) | |
download | pleroma-56022936902a5ab738200ef1a04724ed96b79e22.tar.gz |
Fix callback state.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/oauth/oauth_controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/oauth/oauth_controller.ex b/lib/pleroma/web/oauth/oauth_controller.ex index d76a13d31..3e66c3ee8 100644 --- a/lib/pleroma/web/oauth/oauth_controller.ex +++ b/lib/pleroma/web/oauth/oauth_controller.ex @@ -15,7 +15,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do } end - def create_authorization(conn, %{"authorization" => %{"name" => name, "password" => password, "client_id" => client_id, "redirect_uri" => redirect_uri}} = params) do + def create_authorization(conn, %{"authorization" => %{"name" => name, "password" => password, "client_id" => client_id, "redirect_uri" => redirect_uri} = params}) do with %User{} = user <- User.get_cached_by_nickname(name), true <- Pbkdf2.checkpw(password, user.password_hash), %App{} = app <- Repo.get_by(App, client_id: client_id), |