Custom Login Page localization of Auth Challenge CAPTCHA

Overview

This article explains how to change the language of the Auth Challenge CAPTCHA.

Applies To

  • Bot Detection

Cause

The default is to use English, but this can be overridden. 

https://github.com/auth0/auth0.js/blob/master/src/web-auth/captcha.js#L24

Solution

By passing a "lang" attribute to the renderCaptcha call, it is possible to change the language used by the Auth Challenge Captcha.

For example, passing the language letter code as "ui_locales" in the /authorize request's querystring parameters will be accessible via the config object:

  var captcha = webAuth.renderCaptcha(
        document.querySelector('.captcha-container'),
        {lang: config.extraParams.ui_locales})

Related References

Recommended content

No recommended content found...