# Redirect user to password change right after first login

**URL:** <https://community.auth0.com/t/redirect-user-to-password-change-right-after-first-login/64589>\
**Category:** Get Help\
**Tags:** rules, login\
**Created:** [June 16, 2021, 1:49pm UTC](https://community.auth0.com/t/redirect-user-to-password-change-right-after-first-login/64589 "2021-06-16T13:49:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbafo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cbafo/32/12821_2.png) [@cbafo](https://community.auth0.com/u/cbafo)\
**Post date:** [June 16, 2021, 1:49pm UTC](https://community.auth0.com/t/redirect-user-to-password-change-right-after-first-login/64589/1 "2021-06-16T13:49:16Z")

</div>

Hi everyone

I’m super new to Auth0 and struggeling to finally set up our login page.  
I would like to create a rule, that users which are logging in for the first time, are immediately redirected to change their password. So we would provide them a login for the first login and then after that they should change their password.  
Can anyone help me with this issue?  
Thanks, and consider I’m a super newbie : )

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [June 16, 2021, 4:28pm UTC](https://community.auth0.com/t/redirect-user-to-password-change-right-after-first-login/64589/2 "2021-06-16T16:28:46Z")

</div>

Hi @cbafo, welcome to the community!

Rather than giving your user a password when setting them up for the first time, I would recommend creating them with some random password, and then either [triggering a password reset email](https://auth0.com/docs/api/authentication#change-password), or send them an invite email with a [password reset ticket](https://auth0.com/docs/api/management/v2#!/Tickets/post_password_change) you had pre-generated within the ‘invite’ email.

This way they have to  
a.) Have access to the email assigned to their account  
b.) Have to set their own password before they can login for the first time

This documentation goes into a bit more detail:

> **[Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup)**
>
> Describes how to customize the signup process to invite users to signup for an account in the context of a specific Auth0 application.

---

<div class="post-metadata">

**Author:** ![cbafo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cbafo/32/12821_2.png) [@cbafo](https://community.auth0.com/u/cbafo)\
**Post date:** [June 17, 2021, 7:24am UTC](https://community.auth0.com/t/redirect-user-to-password-change-right-after-first-login/64589/3 "2021-06-17T07:24:42Z")

</div>

Thank you very much for your answer!  
This sounds like a good option for me and i will try to implement it.

---

<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:** [June 17, 2021, 8:55am UTC](https://community.auth0.com/t/redirect-user-to-password-change-right-after-first-login/64589/4 "2021-06-17T08:55:44Z")

</div>

Let us know if you have any other questions down the road!

---

<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:** [July 2, 2021, 8:55am UTC](https://community.auth0.com/t/redirect-user-to-password-change-right-after-first-login/64589/5 "2021-07-02T08:55:56Z")

</div>

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