diff --git a/src/Umbraco.Infrastructure/Security/MemberUserStore.cs b/src/Umbraco.Infrastructure/Security/MemberUserStore.cs
index de4bbca050..6e08040de3 100644
--- a/src/Umbraco.Infrastructure/Security/MemberUserStore.cs
+++ b/src/Umbraco.Infrastructure/Security/MemberUserStore.cs
@@ -86,6 +86,7 @@ namespace Umbraco.Cms.Core.Security
// re-assign id
user.Id = UserIdToString(memberEntity.Id);
+ user.Key = memberEntity.Key;
// [from backofficeuser] we have to remember whether Logins property is dirty, since the UpdateMemberProperties will reset it.
// var isLoginsPropertyDirty = user.IsPropertyDirty(nameof(MembersIdentityUser.Logins));
diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml
index 9b5643d9c0..09954b3f8d 100644
--- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml
+++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml
@@ -12,6 +12,8 @@
.CreateProfileModel()
// If null or not set, this will redirect to the current page
.WithRedirectUrl(null)
+ // Include editable custom properties on the form
+ .WithCustomProperties(true)
.BuildForCurrentMemberAsync();
var success = TempData["FormSuccess"] != null;
@@ -21,7 +23,7 @@
-@if(profileModel != null)
+@if (profileModel != null)
{
if (success)
{
@@ -54,14 +56,17 @@
}
- for (var i = 0; i < profileModel.MemberProperties.Count; i++)
+ @if (profileModel.MemberProperties != null)
{
-
+ }
}
diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml
index 2b5cdd17f9..ca45ff5746 100644
--- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml
+++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/RegisterMember.cshtml
@@ -17,7 +17,7 @@
.WithRedirectUrl(null)
// Set to true if you want the member editable properties shown.
// It will only displays properties marked as "Member can edit" on the "Info" tab of the Member Type.
- .LookupProperties(true)
+ .WithCustomProperties(false)
.Build();
var success = TempData["FormSuccess"] != null;
@@ -71,8 +71,9 @@ else
for (var i = 0; i < registerModel.MemberProperties.Count; i++)
{