Commit 8df95130 authored by Mayel's avatar Mayel

lint

parent a2a8dce0
Pipeline #28836580 (#12) failed with stages
in 5 minutes and 23 seconds
......@@ -8,7 +8,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.OAuth.{Authorization, Token, App}
alias Comeonin.Pbkdf2
alias Pleroma.Web.TwitterAPI.{TwitterAPI}
alias Pleroma.Web.TwitterAPI.TwitterAPI
import Ecto.Query
require Logger
......@@ -1129,14 +1129,13 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
json(conn, [])
end
end
end
def register(conn, _) do
def register(conn, _) do
conn
|> render(MastodonView, "register.html", %{error: false})
end
end
def register_post(conn, params) do
def register_post(conn, params) do
with {:ok, user} <- TwitterAPI.register_user(params),
{:ok, app} <- get_or_make_app(),
{:ok, auth} <- Authorization.create_authorization(app, user),
......@@ -1149,5 +1148,5 @@ def register_post(conn, params) do
conn
|> render(MastodonView, "register.html", %{error: "Wrong details"})
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment