Creating users with Password using API - User CRUD

Occasionally there is a need to create a users account programmatically.

TLDR:

  • You cant generate PW hashes
  • The easiest solution is to create the account in the helper and send a reset email

If you need to be able to send a reset link that will not time bomb, then you instead need to jump though some auth hoops since you are potentially weakening security.

This diagram goes over the basic concept

https://whimsical.com/Cg9wBnJ4X6As6dK7iu985g