POST https://YOUR_DOMAIN/dbconnections/change_password only sends verify email

I’m using POST /dbconnections/change_password endpoint to email change the password, but I am just receiving verify email, not change password. Why is that?

My understanding is, when I call this endpoint, it will send verify email first, once verified, then another email with reset password link. Is that correct understanding?

Endpoint: POST /dbconnections/change_password
Request:

{
    "client_id": "{{client_id}}",
    "email": "VALID-EMAIL",
    "connection": "Username-Password-Authentication"
}

References:

Hello @Gunjan.Parmar!

If you are using a custom email provider, this would be something you would have configured there. You should be able to check the logs to see whats going on.

When you call the /change_password endpoint, it should send the change password email, not verification.

This flow is very similar to the Email Invitations. I would recommend looking over these docs and seeing if this is what you are doing.

As a quick test, you can go to the login page and use the Forgot Password link to verify the flow is correct. If the link does not send the change password email, we then know that there is something wrong with the email provider or flow.

I hope this can help you out and feel free to respond if something was misunderstood!

Best,
Alex

1 Like