Copied to clipboard

Flag this post as spam?

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


  • Anders Brännmark 228 posts 280 karma points
    Jun 23, 2010 @ 19:28
    Anders Brännmark
    0

    Umbraco memberid thru membership, possible?

    Need to get the member id from Umbraco thru the membership provider, is this possible out of the box?

    Or must I add a custom property to membertype and then use an eventhandler to set that value to my custom property, and the map that property to my profile class?

    /Thanks

    Anders

  • David F. Hill 122 posts 242 karma points
    Jun 23, 2010 @ 22:15
    David F. Hill
    0

    Hi Anders,

    You might try something like this:

    Member currMember = Member.GetCurrentMember();
    int currMemberId = currMember.Id;

    Hope that's what you're looking for.

    David

     

  • Anders Brännmark 228 posts 280 karma points
    Jun 23, 2010 @ 22:26
    Anders Brännmark
    0

    Hi David,

    Nope thats not what I'm looking for, but thanks anyway.

    I'm have bitten the bullet and started to create a complete login, profile and role controls for umbraco, as asp.net controls is not in my flavor for a public site and wanted to do it the membership way, and not umbracos own api.

     Nevermind, found the way to do it with membership. Needed to save that value back to an umbraco document. 

    Membership.GetUser().ProviderUserKey
  • David F. Hill 122 posts 242 karma points
    Jun 23, 2010 @ 22:40
    David F. Hill
    0

    Hi Anders,

    Sorry I couldn't help...

    But we should talk because I, too, am trying to create some membership controls for Umbraco. See my forum question:

    http://our.umbraco.org/forum/developers/api-questions/10067-ASPNet-membership-provider-in-Umbraco

    Cheers,

    David

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jun 24, 2010 @ 16:14
    Aaron Powell
    0

    There's an article on the wiki for the membership provider: http://our.umbraco.org/wiki/how-tos/membership-providers

Please Sign in or register to post replies

Write your reply to:

Draft