Don’t send the email! Please help resolve the issue this is essential !!!
The code:
export function doRegistration(email, password, firstName, lastName) {// register the user
return wixUsersBackend.register(email, password, {"contactInfo": {"firstName": firstName,"lastName": lastName}})
.then((results) => {
wixUsersBackend.emailUser("verifyRegistration", results.user.id, {
"variables": {
"verifyLink": `https://wowme.site/post-register?token=${results.approvalToken}`}
})
.catch(error => console.log('emailError', error));
})
.catch(error => console.log('error', error));}
This is the error:
emailError Not Found: the requested item no longer exists.