Approve & confirm users created through the CLI
This commit is contained in:
parent
4c0b30e327
commit
63757fd1fa
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ def run(["new", nickname, email | rest]) do
|
||||||
bio: bio
|
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)
|
{:ok, _user} = User.register(changeset)
|
||||||
|
|
||||||
shell_info("User #{nickname} created")
|
shell_info("User #{nickname} created")
|
||||||
|
|
Loading…
Reference in a new issue