Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon 24 posts 126 karma points
    Dec 23, 2010 @ 09:48
    Simon
    0

    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

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Dec 23, 2010 @ 14:52
    Richard Soeteman
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies