# How to deal with unverified users

**URL:** <https://community.auth0.com/t/how-to-deal-with-unverified-users/91808>\
**Category:** Get Help\
**Tags:** verification\
**Created:** [October 5, 2022, 6:32am UTC](https://community.auth0.com/t/how-to-deal-with-unverified-users/91808 "2022-10-05T06:32:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 6, 2022, 6:37pm UTC](https://community.auth0.com/t/how-to-deal-with-unverified-users/91808/3 "2022-10-06T18:37:09Z")

</div>

Hi @raph90,

Thanks for reaching out to the Auth0 Community!

The best way to deal with unverified users is to set up a [Post-Login Action](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow#access-control) that checks if the user has verified their email.

If so, they can continue onto the application as usual. Otherwise, this will prevent them from consuming your Monthly Active Users (MAU) count.

Below is the Post-Login Action script needed to accomplish this:

```auto
exports.onExecutePostLogin = async (event, api) => {
  if (!event.user.email_verified) {
    api.access.deny(`Please verify your email address to continue onto ${event.client.name}.`);
  }
};

```

Please let me know if there’s anything else I can do to help.

Thanks,  
Rueben

---

_[View the full topic](https://community.auth0.com/t/how-to-deal-with-unverified-users/91808)._
