Customizing the unlock page of Brute-Force Protection

Hi @d-kimuson,

Welcome to the Auth0 Community!

Firstly, you will need to set the user’s preferred language in their user_metadata so we can determine what language to set in the email template. For example:

"user_metadata": {
    "locale": "fr-FR"
}

Then, you can customize the language of your Blocked Account Email template by using liquid syntax in the email template to conditionally set the language.

For example, in the message body you could have:

{% assign language = user.user_metadata.locale %}
{% if language == 'fr-FR' %}
Bonjour
{% else %}
Hi

This will convert the email message body to French if the user’s language is set to ‘fr-FR’ and English otherwise.

Please let me know if you have any questions on this.

Thanks,
Rueben

1 Like