Member Email Verification

ATTENTION: THIS IS OUR OLD SITE. TO SEE OUR NEW WEBSITE, CLICK HERE.

It is often useful or necessary to verify that an email address provided by members of your website both exists and is owned by them. Emailing verified members also helps to protect your reputation as a sender. You can use this verification status to limit access to parts of your website. This code shows you how to verify the email address of your members by sending the member a verification code, which they need to enter into a verification input field on your website.
This code assumes you have read and implemented the section on Member Profile Pages. The first step is to add a 'Verify Email' button to your members profile page (called btnVerify in this example). We also add a text based warning for members indicating if their email address has not been verified yet (called txtWarning). The Site code for handling sign-ups and login is amended to include a random 4-digit number and a verified status which initialises with 'No'. Both 'verified' and 'randomVar' are fields which need to be added to your members collection. The randomVar field stores a random number which will later be sent to the member to confirm their email address.
Please login or sign-up (it's free!) to view our code. Refresh the page if already logged in.
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! We will help where we can, however please be aware that the code is provided 'as is' and without a promise of support in using or implementing it.
  • Facebook Social Icon
© CorvidCodeBank