diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-18 17:13:52 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2018-12-18 17:22:46 +0300 |
commit | b096e30cffc79a4adf12be88da412a290cd0d190 (patch) | |
tree | b7f827b07911eacf731f289da54d73128c1e7cf2 /lib/mix | |
parent | aed0f902871524ecc1db0d8c088ce5939e7c685a (diff) | |
download | pleroma-b096e30cffc79a4adf12be88da412a290cd0d190.tar.gz |
[#114] Added email confirmation resend action. Added tests
for registration, authentication, email confirmation, confirmation resending.
Made admin methods create confirmed users.
Diffstat (limited to 'lib/mix')
-rw-r--r-- | lib/mix/tasks/pleroma/user.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index 3d30e3a81..51086a443 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -103,8 +103,8 @@ defmodule Mix.Tasks.Pleroma.User do bio: bio } - user = User.register_changeset(%User{}, params) - Repo.insert!(user) + changeset = User.register_changeset(%User{}, params, confirmed: true) + {:ok, _user} = User.register(changeset) Mix.shell().info("User #{nickname} created") |