We are working on Kentico 10.
We import contacts provided to us as CSV (saving in OM_Contact table).
Then our system sends emails to these users, they come to our website and register themselves.
The problem is that we are seeing duplicate contacts (not users) getting generated.
It looks like the first contact is created when we imported and second when user is registered (which also creates contact).
How can we make sure user registration associates the user to existing contact and not creating a new contact.
The code to create user is something like this:
UserInfo user = new UserInfo();
user.set ... ....
UserInfoProvider.SetUserInfo(user);
UserInfoProvider.AddUserToSite(user.Email, SiteContext.CurrentSiteName);
Thanks
question from:
https://stackoverflow.com/questions/65943400/kentico-duplicate-contacts-getting-created 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…