With own MemberProvider should I use Membership or Member class?
Hi
I've succesfully implemented a custom Membership (and Role and Profile) Provider. I can add users in the members section and login using the default .net login/register controls.
However I'm confused as to what I should be using to get member objects?
ie Membership.GetUser() or Member.GetCurrentMember().
Membership does work but Member just returns null. Is this expected? Should I be using Membership anyway?
With your own Membership provider you can only use the normal Membership API, in your case Membership.GetUser(). The Member objects are for the Umbraco Member API only, most of these methods are marked as depricated anyway. So Membership.GetUser() will also work if you configured the default Membership provider.
With own MemberProvider should I use Membership or Member class?
Hi
I've succesfully implemented a custom Membership (and Role and Profile) Provider. I can add users in the members section and login using the default .net login/register controls.
However I'm confused as to what I should be using to get member objects?
ie Membership.GetUser() or Member.GetCurrentMember().
Membership does work but Member just returns null. Is this expected? Should I be using Membership anyway?
Si
HI,
With your own Membership provider you can only use the normal Membership API, in your case Membership.GetUser(). The Member objects are for the Umbraco Member API only, most of these methods are marked as depricated anyway. So Membership.GetUser() will also work if you configured the default Membership provider.
Hope this helps you,
Richard
is working on a reply...