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 :(
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 :(
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
is working on a reply...