# Resend verification email from Lock

**URL:** <https://community.auth0.com/t/resend-verification-email-from-lock/12028>\
**Category:** Get Help\
**Tags:** lock\
**Created:** [June 1, 2018, 6:46am UTC](https://community.auth0.com/t/resend-verification-email-from-lock/12028 "2018-06-01T06:46:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smarajit.dasgupta](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@smarajit.dasgupta](https://community.auth0.com/u/smarajit.dasgupta)\
**Post date:** [June 1, 2018, 6:46am UTC](https://community.auth0.com/t/resend-verification-email-from-lock/12028/1 "2018-06-01T06:46:23Z")

</div>

Is it possible to trigger a resend verification email from the login page of Lock via a link or button?

---

<div class="post-metadata">

**Author:** ![mauricio](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mauricio/32/17809_2.png) [@mauricio](https://community.auth0.com/u/mauricio)\
**Post date:** [June 30, 2018, 3:19am UTC](https://community.auth0.com/t/resend-verification-email-from-lock/12028/2 "2018-06-30T03:19:53Z")

</div>

Unfortunately, there’s no such option in Lock.

What you can do is create a new rule using the `Force email verification` template, and customize it to add logic for automatically sending email verification on a login attempt from a user with an unverified email address:

```javascript
function (user, context, callback) {
  if (!user.email_verified) {
   // Combine with a call to our Management API, to trigger an email verification:
   // https://auth0.com/docs/api/management/v2#!/Jobs/post_verification_email

   // To avoid multiple email verification emails to be triggered in a short amount of time,
   // use user.app_metadata to store the last time you sent the email verification,
   // and don't automatically send a new one until a few minutes later

    return callback(new UnauthorizedError('Please verify your email before logging in.'));
  } else {
    return callback(null, user, context);
  }
}

```

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 2:25pm UTC](https://community.auth0.com/t/resend-verification-email-from-lock/12028/3 "2019-07-25T14:25:26Z")

</div>


