Hi!
I am rewriting the code while upgrading from version 4.61 to CMS (5).
In my old code there is this code snippet:
string userEmail = EPiServer.Security.UnifiedPrincipal.Current.UserData.Email
Now it is not working, but is UnifiedPrincipal.Current.UserData replaced with something else?
Best regards
Mats
Yes,
the PersonalizedData (aka UserData) is now replaced by the PersonalizationProvider. Check your web.config file to see which one you're using (probably the SQL Server personalization provider.)
Time to read up on providers, luckily there is alot of information about this out there :-)
/Steve
string userEmail = EPiServer.Security.UnifiedPrincipal.Current.UserData.Email
Now it is not working, but is UnifiedPrincipal.Current.UserData replaced with something else? Best regards Mats