Auth0 Home Blog Docs

How to display a specific message for bloked users

auth0
login
#1

Hello,

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:

Message:
{
“error”: “unauthorized”,
“error_description”: “user is blocked”
}

URL:
https://manage.auth0.com/tester/callback?connection=clientes&error=unauthorized&error_description=user%20is%20blocked

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:

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

split this topic #2

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

closed #3