Auth0 Home Blog Docs

How to add multiple response uri in recovery password email?

password
multiple-domains

#1

Hi everybody! I’m started with Auth0 and I have a problem. I have multiple domains pointed to my web site (mydomain.com, mydomain.com.co, mydomain.com.pe, etc). Can I redirect to a specific domain after password was recovered?
I’m make the email for recovery from https://manage.auth0.com/#/emails, and the field for add response uri accept only a value. Can I make this from code? Another alternative? Thanks for advance!
![alt text][1]


#2

You can use Liquid syntax in the Redirect To field to conditionally redirect to a desired URL. E.g.

{% if application.clientID == "CLIENT_ID" %}  https://www.mydomain.com  {% else %}   https://mydomain.com.co  {% endif %}

To see a list of available attributes, you can use {% debug %} inside the email template and send a test email to yourself. You should then see a list of available attributes in the email you receive.


#3