I’m trying to create users manually (I have a few reasons for doing this). I tried various combinations of
- setting the
password:'non-empty-string'in the arguments of the above
.approve(<user>, true)<-- according to user.rb#L270 it should trigger an email?
While new users are created fine, no email is ever sent to the new user. I can skip the
.activate() step and then go to the GUI and click on the
Send activation email which does send them an email to activate their account. Getting an activatin email is still not great, because the user does not know their password and involves a lot of mouse clicking. I would then either have to send them a separate email with their password, or edit the activation email to tell them to change their password … neither of those is really great.
What I really want is to send them the “Welcome, please choose a password” email that has a link taking them straight to the screen where they choose a new password.
How can I trigger that email from the console?