Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into 1993-confirm-users...
[akkoma] / lib / pleroma / web / mastodon_api / controllers / account_controller.ex
index fe5d022f55fe85e959fecc3006eb4f8d484c1aa5..4c97904b64505655bc2ffe3b8bbf996ac3034373 100644 (file)
@@ -100,7 +100,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountController do
   def create(%{assigns: %{app: app}, body_params: params} = conn, _params) do
     with :ok <- validate_email_param(params),
          :ok <- TwitterAPI.validate_captcha(app, params),
-         {:ok, user} <- TwitterAPI.register_user(params, need_confirmation: true),
+         {:ok, user} <- TwitterAPI.register_user(params),
          {:ok, token} <- Token.create_token(app, user, %{scopes: app.scopes}) do
       json(conn, OAuthView.render("token.json", %{user: user, token: token}))
     else