In change-password page, I’d like to have a “back to login” button which redirects user back to login page. But it seems I can’t get it using “{{redirect_url}}” or “{{result_url}}”.
Is there a way for the HTML to get the URL?
In change-password page, I’d like to have a “back to login” button which redirects user back to login page. But it seems I can’t get it using “{{redirect_url}}” or “{{result_url}}”.
Is there a way for the HTML to get the URL?
Hi @rteng,
Welcome to the Auth0 Community!
Unfortunately, there isn’t a way to include a back button to redirect your users back to the login page while they have not set a new password.
You can, however, redirect your users back to your login page on a successful password reset. To do so, you will need to go to your Auth0 Dashboard > Branding > Email Templates > select the Change Password template. And add your login URL to the Redirect to field, and it should work.
Your login URL should look something like the following:
https://YOUR_DOMAIN/authorize?
response_type=code&
client_id=YOUR_CLIENT_ID&
redirect_uri=https://YOUR_APP/callback&
scope=SCOPE&
audience=API_AUDIENCE&
state=STATE
After doing so, the password reset will redirect your users to the login page after successfully setting a new password.
I hope this answers your question!
Please let me know how this works for you.
Thank you.
Hi @rueben.tiow
Thanks for your answer. The successful password reset has been working well.
It seems I’ll have to get the login URL with other solutions.