Correctly handle invalid credentials on auth login.

Closes #407
This commit is contained in:
lain 2019-01-28 11:41:47 +01:00
commit 1825118fd4
2 changed files with 27 additions and 1 deletions

View file

@ -9,7 +9,8 @@ defmodule Pleroma.Web.OAuth.FallbackController do
# No user/password
def call(conn, _) do
conn
|> put_status(:unauthorized)
|> put_flash(:error, "Invalid Username/Password")
|> OAuthController.authorize(conn.params)
|> OAuthController.authorize(conn.params["authorization"])
end
end