From 63757fd1fa63af129edf2494585b5e97b8137f72 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 13 Dec 2022 17:07:53 -0600 Subject: [PATCH] Approve & confirm users created through the CLI --- lib/mix/tasks/pleroma/user.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index 929fa17177..67f51d456e 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -72,7 +72,7 @@ def run(["new", nickname, email | rest]) do bio: bio } - changeset = User.register_changeset(%User{}, params, is_confirmed: true) + changeset = User.register_changeset(%User{}, params, confirmed: true, approved: true) {:ok, _user} = User.register(changeset) shell_info("User #{nickname} created")