volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

CustomerContext.GetCustomerContact creates new contact

The problem in user Register / Login scenario is as following.

I'm able to register and login user, but after CustomerContext.CurrentContact is called, there is a new entry in the cls_Contact with the following data changes:

  • UserId is changed from Guid to 'String:<emailaddress>', e.g. "String:dariusz.wozniak@opti.com"
  • Email becomes empty
  • FullName is email address now (was the actual name)
  • LastName becomes empty
  • FirstName is email address now (was the actual name)
  • All other data (except Ids and Modified/Created date) becomes NULL / default values

The question: How can I fix that? Should I explicitly set UserId to something like "String:<emailaddress>"? If so, how can I do that?

#286415
Aug 31, 2022 12:43
Vote:

Aha, I see the FoundationContact now:

// The UserId needs to be set in the format "String:{email}". Else a duplicate CustomerContact will be created later on.
public string UserId
{
get => Contact.UserId;
set => Contact.UserId = $"String:{value}";
}
#286417
Aug 31, 2022 12:56
error This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.