Member verification e-mail

Hi guys,
I created a member Signup on my website, and I would like every new member to confirm/verify their e-mail before they are able to access the website as a registered user.
How can I do that?
Thanks a lot
r

3 Likes

Hi Rusty.

Please check out the following article: Velo Tutorial: Sending an Email on Form Submission | Help Center | Wix.com
You will need also a collection to store the verification results.
You can create a page for email confirmation and put a link to the page inside an email with some identifier in path or query param, for you to understand where the link was coming from.
In this page you can write code which will verify the identifier using wix-location (wix-location-frontend - Velo API Reference - Wix.com) and using wix-data (https://www.wix.com/code/reference/wix-data.html) to update the collection.

Then, on any place where you want to verify whether user had verified the email or not, you can use wix-data and wix-users (Page Not Found - Velo API Reference - Wix.com) to achieve that.

Regards,
Genry.

Thanks a lot Genry, I’ll give it a try!

Look at this article also.

Hey Rusty!
Have you managed to do it?

Hey Rusty did you get it to work?

See here for a working solution

1 Like

There exists another way to make this validation? It’s too difficult to understand it.

Can we have a video tutorial based on that?

4 Likes

Hi. Thanks for help. but what should be the code to resend verification mail if visitor has deleted first mail or first mail was not reached to him?

@barjatiyaabhishek
Please add a new forum post with a link to refer back to this post, rather than bumping an old thread from 2018.

It would also depend on how long the user has already had since the token was sent out to them. Wix only let them last for 30 hours, then you need to get them to do it all again.

https://www.wix.com/corvid/reference/wix-users-backend.html#approveByToken
The approveByToken() function returns a Promise that resolves to a session token when the specified user is approved. Tokens must be approved within 30 hours of token creation.

You might just find it easier for them to signup again and have another token email sent out so that they know that the token is still active.

If the verification email was not received by somebody, then you would really need to know why they had not got it first. Otherwise you could simply be sending out email after email and they not receive them etc.

Old post being closed.