# In what scenario "POST https://YOUR\_DOMAIN/dbconnections/change\_password" would fail?

**URL:** <https://community.auth0.com/t/in-what-scenario-post-https-your-domain-dbconnections-change-password-would-fail/84950>\
**Category:** Get Help\
**Tags:** users, change-password\
**Created:** [June 10, 2022, 5:02pm UTC](https://community.auth0.com/t/in-what-scenario-post-https-your-domain-dbconnections-change-password-would-fail/84950 "2022-06-10T17:02:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gunjan.prmr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gunjan.prmr/32/37960_2.png) [@gunjan.prmr](https://community.auth0.com/u/gunjan.prmr)\
**Post date:** [June 10, 2022, 5:02pm UTC](https://community.auth0.com/t/in-what-scenario-post-https-your-domain-dbconnections-change-password-would-fail/84950/1 "2022-06-10T17:02:40Z")

</div>

I am calling `POST https://YOUR_DOMAIN/dbconnections/change_password` after the user creation is done. I have noticed that even if I send invalid email in the body, I get 200 response which is weird.

Questions:

- Is there on validation for email on Auth0 side?
- What are the cases where this endpoint would fail? assuming client\_id and connection is valid.

Request:

```auto
{
    "client_id": "{{client_id}}",
    "email": "invalidEmail",
    "connection": "Username-Password-Authentication"
}

```

Background:

- Call `POST api/v2/users` to create the user. This includes dummy password because this is Auth0 requirement to send password.
- Call `POST /dbconnections/change_password` to change password so that user can set password.

---

<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:** [June 10, 2022, 8:57pm UTC](https://community.auth0.com/t/in-what-scenario-post-https-your-domain-dbconnections-change-password-would-fail/84950/3 "2022-06-10T20:57:15Z")

</div>

Hi @gunjan.prmr,

Welcome to the Auth0 Community!

I understand you have questions about the Authentication API’s `/dbconnections/change_password` endpoint.

> [@gunjan.prmr](#):
>
> I have noticed that even if I send invalid email in the body, I get 200 response which is weird.

This is the expected behavior since we do not want to give away any clues as to whether an email address exists or not. Otherwise, we could introduce security risks when exposing the email address.

Hence, Auth0 will send a change password link to the user if they exist in the provided `client_id` and `connection` parameters. The response will show `We've just sent you an email to reset your password.` regardless of whether the email address is valid.

The endpoint will only fail if the request does not provide the required `client_id` and `connection` parameters or if they are invalid.

Lastly, based on your current implementation, you may find our [Send Email Invitations for Application Signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup) documentation relevant.

I hope this helps answer your questions.

Please let me know if you have any further questions.

Thank you.

---

<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:** [December 22, 2022, 9:28am UTC](https://community.auth0.com/t/in-what-scenario-post-https-your-domain-dbconnections-change-password-would-fail/84950/4 "2022-12-22T09:28:13Z")

</div>


