How to display a specific message for bloked users


I’m using a custom Auth0 login screen. When a blocked user trys to loggin, he is redirect to another page with the following details:

“error”: “unauthorized”,
“error_description”: “user is blocked”


I need to change this for a simple message displayed in the login screen, but I’m not getting any succes. Please help!

My login code:

realm: ‘clientes’,
username: document.getElementById(‘text’).value,
password: document.getElementById(‘password’).value
}, function(err){
if (err) {

A post was merged into an existing topic: Is It possible to customize Blocked user page?