Merge branch 'mix-user-approve' into 'develop'

Approve & confirm users created through the CLI

Closes #157

See merge request soapbox-pub/rebased!226
This commit is contained in:
Alex Gleason 2022-12-14 00:09:18 +00:00
commit bed6f1c00c

View file

@ -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")