EPiServer.Security.UnifiedPrincipal.Current.UserData is replaced with?

Vote:
 
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
#13388
Mar 25, 2008 18:36
Vote:
 
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
#19097
Mar 26, 2008 10:32