Approve & confirm users created through the CLI

This commit is contained in:
Alex Gleason 2022-12-13 17:07:53 -06:00
parent 4c0b30e327
commit 63757fd1fa
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

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