Copied to clipboard

Flag this post as spam?

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


  • Dave de Moel 122 posts 574 karma points c-trib
    Aug 11, 2015 @ 12:28
    Dave de Moel
    0

    Get Content/Member ID from backoffice

    Hey guys,

    I have been busy with a project that is to allow a site administrator to log in as a member on the website from inside of the Umbraco backoffice.

    To do that I have created a custom button datatype that when pressed is to redirect to the main website page, and log in as the member for which he pressed the button.

    The button currently calls a custom APIcontroller, however, how can I get the member Id from within this controller? I don't seem to be able to access anything from the backoffice from within the controller class, or anywhere else for that matter?

    I have found an old (2011) thread that opted to request the querystring, but that doesn't seems to be working anymore :(

  • Dave de Moel 122 posts 574 karma points c-trib
    Aug 11, 2015 @ 13:21
    Dave de Moel
    100

    And then it hit me. The guid of the member is available in the URL, so ones I extracted that it was a piece of cake :D

Please Sign in or register to post replies

Write your reply to:

Draft