Fix callback state.
authorRoger Braun <roger@rogerbraun.net>
Sat, 16 Sep 2017 09:37:55 +0000 (11:37 +0200)
committerRoger Braun <roger@rogerbraun.net>
Sat, 16 Sep 2017 09:37:55 +0000 (11:37 +0200)
lib/pleroma/web/oauth/oauth_controller.ex

index d76a13d31907e28b4c52f17a389840f7fe1c9b0f..3e66c3ee8737f332cd9b182de7ad9e24acb0285e 100644 (file)
@@ -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),