From: Ivan Tashkinov Date: Wed, 19 Dec 2018 14:24:55 +0000 (+0300) Subject: [#114] User.register/1 tweak. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a532ad5d720cbbe3ef58e09f8ad209bfe15b43c9;p=akkoma [#114] User.register/1 tweak. --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 4e227b08d..4b8caf65c 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -210,8 +210,8 @@ defmodule Pleroma.User do @doc "Inserts provided changeset, performs post-registration actions (confirmation email sending etc.)" def register(%Ecto.Changeset{} = changeset) do - with {:ok, user} <- Repo.insert(changeset) do - {:ok, _} = try_send_confirmation_email(user) + with {:ok, user} <- Repo.insert(changeset), + {:ok, _} = try_send_confirmation_email(user) do {:ok, user} end end