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

Cannot login with email changed from code

Vote:
 

I have a form on my site where user is supposed to be able to change password, email etc. When changing email I use the following code:

EPiServer.Personalization.EPiServerProfile.Current.Email = email;
EPiServer.Personalization.EPiServerProfile.Current.Save();

The email is then changed when I view the user properties from admin mode but the weird thing is that I cannot log in with the new email adress. If I then go to Edit user page, select my user and click save without changing anything, login works as expected. Is this a bug or am I forgetting something?

#112855
Nov 06, 2014 13:30
* 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.