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:
commit
bed6f1c00c
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue