Custom UI password reset page

Hi everyone,

I’m introducing custom Login & Password Reset user experience.
A lot of things it’s possible using auth0 dashboard and it’s cool, of course.

But one thing which I am unable to deal with is Custom Password Reset page.
Giving more details:

I send post request according to:

Everything is implemented as described but the response I receive is:
{
code: “missing_property”
description: “tenant must be specified”
name: “BadRequestError”
statusCode: 400
}

Does anyone encountered the same and managed to handle this?

1 Like

HI @lukasz.ziemnicki1705 ,

Welcome to the Auth0 Community!

I understand that you want to customize the password reset page. Could you please open this article, expand the “Reset Password” prompt, and is the screen “Reset-Password” the one you want to customize?


BTW, the POST request in [Github](https://github.com/auth0/auth0-custom-password-reset-hosted-page) is for resetting the password.

Faced the same issue. And I managed to resolve by ensuring that the POST request I send has ‘Content-Type’ header of ‘application/x-www-form-urlencoded’ and that request body follows the content type:

        var formData = new FormData();
        formData.append('newPassword', form.newPassword.value);
        formData.append('confirmNewPassword', form.confirmNewPassword.value);
        formData.append('_csrf', csrf_token);
        formData.append('ticket', ticket);

        var request = new Request(form.action, { method: form.method, body: new URLSearchParams(formData), headers: new Headers({ 'Content-Type': 'application/x-www-form-urlencoded' }) });

        fetch(request).then(handleSetPasswordResponse).catch(handleNetworkError);

A request was failing with content-type of multipart/form-data;

Thank you @uazure for sharing your solution with us :clap:

It’d be nice to have this API documented and supported. I see that it was an issue for a number of years already. Any plans to resolve this?

@uazure How can you get csrf_token and ticket ?

Can you share your whole solution ? I couldn’t figure out.

1 Like