Skip to content

Commit

Permalink
Merge pull request #4284 from valadas/default-user-locale
Browse files Browse the repository at this point in the history
Fixed an issue where new users would have no preferred locale.
  • Loading branch information
valadas authored Nov 7, 2020
2 parents fd79529 + c6e2063 commit d6b7fd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public UserBasicDto Register(RegisterationDetails registerationDetails)
newUser.Membership.PasswordConfirm = newUser.Membership.Password;

//set other profile properties
newUser.Profile.PreferredLocale = new Localization().CurrentUICulture;
newUser.Profile.InitialiseProfile(portalSettings.PortalId);
newUser.Profile.PreferredLocale = new Localization().CurrentUICulture;
newUser.Profile.PreferredTimeZone = portalSettings.TimeZone;

//derive display name from supplied firstname, lastname or from email
Expand Down

0 comments on commit d6b7fd8

Please sign in to comment.