Allow access to custom membership properties via the MemberIdentityUser #11000
emmagarland
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Task
Currently in v9, you need to use the member service if you need to get and set custom member property type values.
We want to be able to access and update custom member property values directly from the
MemberIdentityUser.This task is to make it so that end users do not have to use
IMemberServiceto retrieve/update custom member properties.Implementation suggestion
This was possible within Shannon Deminick's UmbracoIdentity package via the MemberProperties property in the
UmbracoIdentityMemberclass.MemberPropertiesproperty to the v9MemberIdentityUserobject to allow people to access the required CRUD functions on these member properties directly without needing to hit theMemberServiceseparately.user.MemberPropertiesproperty is affected when a member is created/updated/deleted in the Member user store class, via theMemberServiceMemberIdentityUseris retrieved from theMemberUserStore, we should also return the custom member properties from the member service (perhaps via some sort of member mapping method), returning them as part of theMemberIdentityUserobjectCurrent status in v9
MemberUserStorethere is anUpdateMemberPropertiesmethod, but it can't persist the updated properties to the member identity object because there are no custom member properties on that identity class.Other areas to consider
Notes
Beta Was this translation helpful? Give feedback.
All reactions