diff --git a/src/Umbraco.Core/Models/MemberPropertyModel.cs b/src/Umbraco.Core/Models/MemberPropertyModel.cs index 780ad9ca99..0557b226c3 100644 --- a/src/Umbraco.Core/Models/MemberPropertyModel.cs +++ b/src/Umbraco.Core/Models/MemberPropertyModel.cs @@ -8,7 +8,7 @@ namespace Umbraco.Cms.Core.Models /// public class MemberPropertyModel { - [Editable(false)] + [Required] public string Alias { get; set; } //NOTE: This has to be a string currently, if it is an object it will bind as an array which we don't want. diff --git a/src/Umbraco.Infrastructure/Security/IMemberManager.cs b/src/Umbraco.Infrastructure/Security/IMemberManager.cs index a9ada29162..081b8cd6c9 100644 --- a/src/Umbraco.Infrastructure/Security/IMemberManager.cs +++ b/src/Umbraco.Infrastructure/Security/IMemberManager.cs @@ -18,5 +18,11 @@ namespace Umbraco.Cms.Core.Security IEnumerable allowTypes = null, IEnumerable allowGroups = null, IEnumerable allowMembers = null); + + // TODO: We'll need to add some additional things here that people will be using in their code: + + // bool MemberHasAccess(string path); + // IReadOnlyDictionary MemberHasAccess(IEnumerable paths) + // Possibly some others from the old MembershipHelper } } 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 55a2c05918..9b5643d9c0 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/EditProfile.cshtml @@ -35,12 +35,12 @@
- +
- +
@@ -48,17 +48,18 @@ @if (!string.IsNullOrWhiteSpace(profileModel.UserName)) {
- +
} -for (var i = 0; i < profileModel.MemberProperties.Count; i++) + for (var i = 0; i < profileModel.MemberProperties.Count; i++) {
- + @Html.LabelFor(m => profileModel.MemberProperties[i].Value, profileModel.MemberProperties[i].Name) + @Html.HiddenFor(m => profileModel.MemberProperties[i].Alias)
} diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml index b2245dc6b6..d3c389c78d 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/Login.cshtml @@ -23,12 +23,12 @@
- +
- +
diff --git a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml index 089e534bf1..bca0a23c43 100644 --- a/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml +++ b/src/Umbraco.Web.UI.NetCore/umbraco/PartialViewMacros/Templates/LoginStatus.cshtml @@ -15,7 +15,7 @@ {