aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2018-12-19 17:24:55 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2018-12-19 17:24:55 +0300
commita532ad5d720cbbe3ef58e09f8ad209bfe15b43c9 (patch)
tree3e765fa0d84a213c0e39259bc0d57bed880c0a4b
parent968d7490b689ba501a64f350841dc8f9b33b5244 (diff)
downloadpleroma-a532ad5d720cbbe3ef58e09f8ad209bfe15b43c9.tar.gz
[#114] User.register/1 tweak.
-rw-r--r--lib/pleroma/user.ex4
1 files changed, 2 insertions, 2 deletions
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