In the Member Login code How can I trigger a link after insert the email address into the database.
if (results.items.length === 0) {
// create an item
const toInsert = {
"_id": userId,
"email": userEmail
};
// add the item to the collection
wixData.insert("regdog", toInsert);
.catch((err) => {
console.log(err);
});
}
after
wixData.insert("regdog", toInsert);
go to a dynamic page.
wixLocation.to(`/regdog/create/${wixUsers.currentUser.id}`)
Thank you,
Geo