Skip to content
Snippets Groups Projects
Commit 56022936 authored by lain's avatar lain
Browse files

Fix callback state.

parent c36229c4
Branches
No related tags found
No related merge requests found
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment