# How to ask a user to create a password for the account made for him?

**URL:** <https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [17 februari 2020 om 18:45 UTC](https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825 "2020-02-17T18:45:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [21 februari 2020 om 12:43 UTC](https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825/3 "2020-02-21T12:43:49Z")

</div>

> [@dm.linov](#):
>
> Under what circumstances other three messages (“Account created”, “Login via link”, and “Set Password”) are sent?

‘account\_created’ is used when using the ‘invite admin’ API endpoint, and when creating an administrator via the `admin:invite` rake task

‘login via link’ (internally referred to as `email_login`) is sent when someone uses the ‘login via email’ link

‘set password’ is the same as ‘forgot password’, when the user does not already have a password in the database

> [@dm.linov](#):
>
> 1. Send this user an e-mail with the link to this topic, and also **a request to create a password**.

I think the best approach is to create the new users as “staged”, and then send them an ‘invite’ to the topic. That invite will log them straight into their staged account, and then take them to the topic. They won’t be asked to create a password, but they can do that manually, or just use the sign in via email option.

---

_[View the full topic](https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825)._
