I customized the login page, however I do not know what href or action url use to redirect users to password reset page. Neither I see it in documentation. I tried using an href directly in the link and it says that tenant param is missing. After that I made a form in a function for the onClick event of the element, but it returns 404.
This is the last very basic way I tried:
function submitForm() {
if (typeof config !== 'undefined' && config.clientID) {
const clientId = config.clientID;
const tenant = config.auth0Tenant;
const form = document.createElement("form");
form.method = "POST";
form.action = `https://${tenant}.us.auth0.com/lo/reset`;
const tenantField = document.createElement("input");
tenantField.type = "hidden";
tenantField.name = "tenant";
tenantField.value = tenant;
form.appendChild(tenantField);
const clientIdField = document.createElement("input");
clientIdField.type = "hidden";
clientIdField.name = "client_id";
clientIdField.value = clientId;
form.appendChild(clientIdField);
document.body.appendChild(form);
form.submit();
}
}
I read in other questions that setting ‘Content-Type’: ‘application/x-www-form-urlencoded’ could work however this is the default type in a post request, so I tried with a fetch request to try that and error was what I received.
I just need that users click on forgot password link and then they see the password reset window