forked from AkkomaGang/akkoma
Fix callback state.
This commit is contained in:
parent
c36229c4aa
commit
5602293690
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ def authorize(conn, params) 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),
|
||||
|
|
Loading…
Reference in a new issue