# Password change Ticket URL error

**URL:** <https://community.auth0.com/t/password-change-ticket-url-error/120539>\
**Category:** Get Help\
**Tags:** email-templates-branding, branding\
**Created:** [November 9, 2023, 11:12am UTC](https://community.auth0.com/t/password-change-ticket-url-error/120539 "2023-11-09T11:12:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Izil](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Izil](https://community.auth0.com/u/Izil)\
**Post date:** [November 9, 2023, 11:12am UTC](https://community.auth0.com/t/password-change-ticket-url-error/120539/1 "2023-11-09T11:12:13Z")

</div>

Hello everyone!

When we get password change emails, there’s a link and a button inside. The problem is, the link doesn’t take us to the same page as the button does. Clicking the button gets us to the right page for changing the password, but if you click the link, it’s a no-go. The link’s value is the same for everyone.

We’ve got two tenants but only one of them acts up like this.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/3/23a0ea629eefefc0cff6d88d6b48230a712ab8c7.png)

Page if we click the link:  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/9/5923abd06036ee87a202f223b3245dbb2df9370e.png)

Did anyone else encounter the same problem, and if they did, how did they resolve it?

Thanks!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 9, 2023, 5:24pm UTC](https://community.auth0.com/t/password-change-ticket-url-error/120539/3 "2023-11-09T17:24:57Z")

</div>

Hi @Izil,

I have just taken a look at your Change Password email template and found on line 579 that you are setting a href attribute to a URL which you have generated by calling the Management API’s [change password ticket endpoint](https://auth0.com/docs/api/management/v2/tickets/post-password-change).

This will not work since generating a change password ticket requires that you specify the user\_id that it is for, and the ttl\_sec (time to live in seconds) for when the URL expires, among other body parameters. Therefore, you will need to remove that href attribute and allow the template to generate the URL dynamically for your users. For clarity, you only need to specify `{{ url }}` in your code template.

To see an example, you can view the default change password email template.

I hope this helps!

Please reach out again if you have any additional questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![Izil](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Izil](https://community.auth0.com/u/Izil)\
**Post date:** [November 10, 2023, 8:17am UTC](https://community.auth0.com/t/password-change-ticket-url-error/120539/4 "2023-11-10T08:17:34Z")

</div>

I didn’t notice that Thanks !! 🙏

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 13, 2023, 5:14pm UTC](https://community.auth0.com/t/password-change-ticket-url-error/120539/5 "2023-11-13T17:14:13Z")

</div>

Hi @Izil,

Of course, you’re welcome!

I’m glad it’s working now.

Please let us know if you have any further questions.

Thanks,  
Rueben

---

<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 27, 2023, 5:14pm UTC](https://community.auth0.com/t/password-change-ticket-url-error/120539/6 "2023-11-27T17:14:58Z")

</div>

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