diff --git a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml index c37f253709..06916aa16b 100644 --- a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml @@ -6,7 +6,7 @@ @using Umbraco.Web.Controllers @{ - var profileModel = Members.CreateProfileModel(); + var profileModel = Members.GetCurrentMemberProfile(); Html.EnableClientValidation(); Html.EnableUnobtrusiveJavaScript(); diff --git a/src/Umbraco.Web/Models/ProfileModel.cs b/src/Umbraco.Web/Models/ProfileModel.cs index 9827529d06..cd46a3c64b 100644 --- a/src/Umbraco.Web/Models/ProfileModel.cs +++ b/src/Umbraco.Web/Models/ProfileModel.cs @@ -24,7 +24,7 @@ namespace Umbraco.Web.Models if (doLookup) { var helper = new MembershipHelper(ApplicationContext.Current, new HttpContextWrapper(HttpContext.Current)); - var model = helper.CreateProfileModel(); + var model = helper.GetCurrentMemberProfile(); MemberProperties = model.MemberProperties; } } diff --git a/src/Umbraco.Web/Security/MembershipHelper.cs b/src/Umbraco.Web/Security/MembershipHelper.cs index fb5c0d9f6d..807200c141 100644 --- a/src/Umbraco.Web/Security/MembershipHelper.cs +++ b/src/Umbraco.Web/Security/MembershipHelper.cs @@ -196,7 +196,7 @@ namespace Umbraco.Web.Security /// Creates a new profile model filled in with the current members details if they are logged in. /// /// - public ProfileModel CreateProfileModel() + public ProfileModel GetCurrentMemberProfile() { if (IsLoggedIn() == false) {