Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
Hi,
Yes, those should be expected, there's a section in your web.config:
<profile enabled="true" defaultProvider="SqlProfileProvider" automaticSaveEnabled="false"> By default:
<properties>
<add name="Address" type="System.String" />
<add name="ZipCode" type="System.String" />
<add name="Locality" type="System.String" />
<add name="Email" type="System.String" />
<add name="FirstName" type="System.String" />
<add name="LastName" type="System.String" />
<add name="Language" type="System.String" />
<add name="Country" type="System.String" />
<add name="Company" type="System.String" />
<add name="Title" type="System.String" />
<add name="CustomExplorerTreePanel" type="System.String" />
<add name="FileManagerFavourites" type="System.Collections.Generic.List`1[System.String]" />
<add name="EditTreeSettings" type="EPiServer.Personalization.GuiSettings, EPiServer" />
<add name="ClientToolsActivationKey" type="System.String" />
<add name="FrameworkName" type="System.String" />
<!-- ECF Start -->
<add name="State" type="System.Int32" allowAnonymous="false" />
<add name="FullName" type="System.String" allowAnonymous="true" />
<add name="PreferredBillingAddress" type="System.String" />
<add name="PreferredShippingAddress" type="System.String" />
<add name="LastVisited" type="System.DateTime" />
<!-- ECF End -->
<add name="MarketId" type="System.String" allowAnonymous="true" />
</properties>
Regards.
/Q
This is kind of a bump, but I ran into the same "issue".
I experienced the same thing. I did something like this:
var order = cart.SaveAsPurchaseOrder();
var username = Guid.NewGuid().ToString();
var user = Membership.CreateUser(username, password, email, null, null, true, out status);
var contact = CustomerContact.CreateInstance(user);
contact.FirstName = address.FirstName;
contact.LastName = address.LastName;
contact.FullName = string.Format("{0} {1}", address.FirstName, address.LastName);
contact.AddContactAddress(address);
contact.SaveChanges();
FormsAuthentication.SetAuthCookie(email, userModel.RememberMe); // Bug here
Ok, so as it turned out, the account was created due to the username passed to .SetAuthCookie(...) was wrong. Changing to this fixed my issue:
var username = Membership.GetUserNameByEmail(email); FormsAuthentication.SetAuthCookie(username, rememberMe);
Hi there
I have a website where users can log in - This works fine. When they log in a contact is created containing the username (email address) in Full name, First name and email field. This is not done by our code.
Is this expected behaviour?
Regards
Thomas