Custom registration creating 2 contacts

Hi,

I have created a custom (Velo) membership option with email verification using the example https://www.wix.com/velo/example/members-area . Everything is working fine, my verification email is going and members are getting added as they should. But the contact is created twice (duplicated) and it leads to the following problem.

Scenario 1 - once the new user submits the details, the code sends out the verification link in the triggered email and if the user clicks the verification link then everything works as intended
Scenario 2 - once the new user submits the details, the code sends out the verification link in the triggered email but for some reason the user doesn’t click the verification link (deletes the email by mistake) - then the user can’t signup again because the contact is already created on the website (member is not created - just a contact)

Any suggestions?

While signing up again, you can add a function to check the user first if data is present for the given details. If data present, use remove data first and then use insert/create function.

You can also show a lightbox if the user already exist. Then you can offer them to either delete the previous details and signup again or resend the confirmation email.