# Auth0 - Inviting Users & Forgot Password collision

**URL:** <https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174>\
**Category:** Get Help\
**Created:** [August 4, 2022, 8:42am UTC](https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174 "2022-08-04T08:42:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyubomir.nikov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lyubomir.nikov/32/36625_2.png) [@lyubomir.nikov](https://community.auth0.com/u/lyubomir.nikov)\
**Post date:** [August 4, 2022, 8:42am UTC](https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174/1 "2022-08-04T08:42:50Z")

</div>

Hello!

Recently I implemented a functionality of inviting users where they are prompted to change their passwords after I create their profile. The flow:

1. Create new user in Auth0
2. Post-registration hook is triggered - an email is sent to this user with a link for changing his password.
3. The email template is “Change Password” and it is customized in a way that represents “User Invitation”. (I am using SendGrid as email provider)

That works fantastic, BUT I realized that when I click “Forgot Password?” with a user that is already registered it is using the same template that I modified in order to simulate the invitation explained above.

I was wondering is there any way that I can create multiple templates for resetting password and respectively switch them depending on the case?

Are there any other solutions that might fit to my case? The thing is that I have to use this simulation of user invitation because when I create the user I have to setup various metadata properties.

Any suggestions would be appreciated,  
Thank you!

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [August 4, 2022, 12:26pm UTC](https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174/2 "2022-08-04T12:26:52Z")

</div>

Hello @lyubomir.nikov,

There is only one template for each type of template, but content can be customized or “programmed” using [liquid syntax](https://auth0.com/docs/customize/email/email-templates). In this way you can alter the content of the email based on various conditions including user profile attributes.

Mark

---

<div class="post-metadata">

**Author:** ![stuartcarter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stuartcarter/32/33282_2.png) [@stuartcarter](https://community.auth0.com/u/stuartcarter)\
**Post date:** [September 28, 2022, 10:33am UTC](https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174/3 "2022-09-28T10:33:26Z")

</div>

Hi, I would like to know how you achieve sending the Auth0 change password email in step (2).

The Actions documentation doesn’t give any example of calling the Auth0 Management functions to send an email for password reset, verification or enroll in MFA for example.

Do you have a link from this forum or could you please briefly explain. I suspect you may be importing the Auth0 management library directly since I could not find any ‘built-in management object’ within the Action editor.

Thanks!  
Stu

---

<div class="post-metadata">

**Author:** ![stuartcarter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stuartcarter/32/33282_2.png) [@stuartcarter](https://community.auth0.com/u/stuartcarter)\
**Post date:** [September 28, 2022, 2:47pm UTC](https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174/4 "2022-09-28T14:47:45Z")

</div>

I found out how to use the Management API within an action - it is on this forum but not in the Auth0 docs - it would be a very useful addition IMO.

[https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947](https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 4, 2022, 1:02pm UTC](https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174/5 "2022-11-04T13:02:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2022, 1:02pm UTC](https://community.auth0.com/t/auth0-inviting-users-forgot-password-collision/88174/6 "2022-11-04T13:02:33Z")

</div>

Thanks for sharing it with the rest of community!
