Auth0 Home Blog Docs

Is It possible to customize Blocked user page?


#1

The full response from Auth0 is:
{
“error”: “unauthorized”,
“error_description”: “user is blocked”
}

Is it possible to customize this page? Or dont show it.


How to display a specific message for bloked users
#2

Have you checked the Customizing Lock Error Messages page?


#3

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) {
(…)
});


#4

fyi @marco.santo I moved your duplicate question to the other one you created and joined them - my post above should get you started in the right direction


#5

@jeremy.meiss, we are experiencing a similar issue to @marco.santo. The url you referenced is specific to using lock.js, we are both using auth0.js. It’s interesting that an invalid password isn’t redirected, but a blocked user is redirected back to the client.

Ideally, as you said with lock, the user would never leave the login screen. Can you provide context or documentation that can support this instead of redirecting?