Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get to strongly typed Member object in GenerateUserIdentityAsync #136

Open
dhymik opened this issue May 14, 2021 · 0 comments
Open

Comments

@dhymik
Copy link

dhymik commented May 14, 2021

How can I access the Umbraco Member object in a strongly typed way in GenerateUserIdentityAsync? And how can I use the strongly typed Member model to post changes?

I figured out how to access the properties of my Members type through the 'UmbracoApplicatonMember.MemberProperties` property.

However, I have failed so far in finding a way to cast this to the Member model. Can this be done? Can I access the Umbraco MembershipHelper, or is there another way?

And if this is possible, can I then cast the Members object back to 'UmbracoApplicatonMember` to persist changes?

I am grateful for some guidance on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant