# Creating a custom password change page

**URL:** <https://community.auth0.com/t/creating-a-custom-password-change-page/185160>\
**Category:** Get Help\
**Tags:** user-password-management, user-management\
**Created:** [April 8, 2025, 12:21pm UTC](https://community.auth0.com/t/creating-a-custom-password-change-page/185160 "2025-04-08T12:21:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ixrijde](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ixrijde/32/74119_2.png) [@ixrijde](https://community.auth0.com/u/ixrijde)\
**Post date:** [April 8, 2025, 12:21pm UTC](https://community.auth0.com/t/creating-a-custom-password-change-page/185160/1 "2025-04-08T12:21:46Z")

</div>

Is there any way to create a section in my application which request a user his current password, checks if it is valid and if so changes the password to the new password which has been supplied?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [April 8, 2025, 2:09pm UTC](https://community.auth0.com/t/creating-a-custom-password-change-page/185160/3 "2025-04-08T14:09:26Z")

</div>

Hi @ixrijde

Welcome to the Auth0 Community!

There are a few approaches you can take while developing such a feature for your application, depending on how much you want to use Auth0’s built-in features in the flow.

1. User change password in the Universal Login:

- Authentication API → [https://auth0.com/docs/authenticate/database-connections/password-change#authentication-api](https://auth0.com/docs/authenticate/database-connections/password-change#authentication-api)

> If your application uses an interactive password reset flow through the Authentication API, make a `POST` call. In the `email` field, provide the user’s email address who needs to change their password. If the call is successful, the user [receives a password reset email](https://auth0.com/docs/authenticate/database-connections/password-change#password-reset-email).

- Managment API → [https://auth0.com/docs/api/management/v2/tickets/post-password-change](https://auth0.com/docs/api/management/v2/tickets/post-password-change)

> Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow.
> 
> Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

For both solutions, the user will be transferred to the Universal Login, where he can change the password. You can also utilize the Actions to enhance this flow further.

1. The user changes the password in your application  
If you want your users to change their password inside your application, you will need to utilize the Management API to update the password → [https://auth0.com/docs/authenticate/database-connections/password-change#directly-set-the-new-password](https://auth0.com/docs/authenticate/database-connections/password-change#directly-set-the-new-password). Out of the box we don’t offer endpoint for password validation, but the generally good approach here would be to force user to re-authenticate before accepting the password for change from your system.

```auto
curl --request PATCH \
  --url 'https://{yourDomain}/api/v2/users/%7BuserId%7D' \
  --header 'authorization: Bearer {yourMgmtApiAccessToken}' \
  --header 'content-type: application/json' \
  --data '{"password": "newPassword","connection": "connectionName"}'

```

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2/users/patch-users-by-id)**

Thanks  
Dawid

---

<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:** [April 22, 2025, 2:09pm UTC](https://community.auth0.com/t/creating-a-custom-password-change-page/185160/4 "2025-04-22T14:09:30Z")

</div>

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