# Action to deny login with message

**URL:** <https://community.auth0.com/t/action-to-deny-login-with-message/91711>\
**Category:** Get Help\
**Created:** [October 3, 2022, 4:03pm UTC](https://community.auth0.com/t/action-to-deny-login-with-message/91711 "2022-10-03T16:03:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 4, 2022, 9:52pm UTC](https://community.auth0.com/t/action-to-deny-login-with-message/91711/3 "2022-10-04T21:52:36Z")

</div>

Hey @michaelh welcome to the community!

> [@michaelh](#):
>
> Is there not some simple way to, based on the Post-Login Action, deny the login and present the user with a message on the Universal Login page?

Unfortunately there isn’t currently a way to achieve this currently:

> [@Deny users with certain roles at login](https://community.auth0.com/t/deny-users-with-certain-roles-at-login/91118/6):
>
> Awesome, thanks for sharing! There’s no OOTB support for redirecting a user to Universal Login with the error message - As it stands your application will need to handle what to do next with the error params/user returned to the callback. What I have seen in this scenario is a user being presented with some sort of error page (using the error params) and an option to click to bring up universal login once more with ([loginWithRedirect({prompt: ‘login’})](https://auth0.github.io/auth0-spa-js/classes/auth0client.html#loginwithredirect)) for example.

I did quick search of our [feedback section](https://community.auth0.com/c/feedback/95) and didn’t see anything directly related to this so I’d recommend creating a request yourself if you’re interested!

---

_[View the full topic](https://community.auth0.com/t/action-to-deny-login-with-message/91711)._
