# I would like to ask if there is a confirmation function for owning an email address

**URL:** <https://community.auth0.com/t/i-would-like-to-ask-if-there-is-a-confirmation-function-for-owning-an-email-address/78859>\
**Category:** Get Help\
**Created:** [February 24, 2022, 2:06pm UTC](https://community.auth0.com/t/i-would-like-to-ask-if-there-is-a-confirmation-function-for-owning-an-email-address/78859 "2022-02-24T14:06:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.kubo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/s.kubo/32/35436_2.png) [@s.kubo](https://community.auth0.com/u/s.kubo)\
**Post date:** [February 24, 2022, 2:06pm UTC](https://community.auth0.com/t/i-would-like-to-ask-if-there-is-a-confirmation-function-for-owning-an-email-address/78859/1 "2022-02-24T14:06:53Z")

</div>

I would like to ask if there is a confirmation function for owning an email address.

We are using Auth0 and are developing email address registration.  
Currently, you can log in to the site immediately after registration.  
From there, I would like to change it so that I can not log in to the site until I can confirm the ownership of the email address after registration.

We have contacted you to confirm that there is a function (including the screen) to confirm the ownership of your e-mail address.

We would appreciate it if you could reply.

---

<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:** [February 25, 2022, 12:05am UTC](https://community.auth0.com/t/i-would-like-to-ask-if-there-is-a-confirmation-function-for-owning-an-email-address/78859/3 "2022-02-25T00:05:28Z")

</div>

Hi @s.kubo,

Welcome to the Auth0 Community!

I understand you are looking for a way to prevent users from logging in to your application until they have verified their email address.

To do so, there is the option to use the [Auth0 Post-Login Action](https://auth0.com/docs/customize/actions/flows-and-triggers/login-flow) to deny the user access if their email address is not verified.

Below is the Post-Login Action script code 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 access to ${event.client.name}.`);
  }
};

```

Hoped this helps!

Please do not hesitate to reach out if you have any further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![s.kubo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/s.kubo/32/35436_2.png) [@s.kubo](https://community.auth0.com/u/s.kubo)\
**Post date:** [February 25, 2022, 1:09am UTC](https://community.auth0.com/t/i-would-like-to-ask-if-there-is-a-confirmation-function-for-owning-an-email-address/78859/4 "2022-02-25T01:09:22Z")

</div>

thank you for your reply.

I will try it with the contents you received.

---

<div class="post-metadata">

**Author:** ![s.kubo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/s.kubo/32/35436_2.png) [@s.kubo](https://community.auth0.com/u/s.kubo)\
**Post date:** [March 2, 2022, 6:12am UTC](https://community.auth0.com/t/i-would-like-to-ask-if-there-is-a-confirmation-function-for-owning-an-email-address/78859/5 "2022-03-02T06:12:34Z")

</div>

Thank you for answering the question the other day.

When I tried it, it was solved successfully.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 17, 2022, 6:13am UTC](https://community.auth0.com/t/i-would-like-to-ask-if-there-is-a-confirmation-function-for-owning-an-email-address/78859/6 "2022-03-17T06:13:11Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
