Copied to clipboard

Flag this post as spam?

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


  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Aug 22, 2016 @ 10:50
    Michaël Vanbrabandt
    0

    Login as member from the Umbraco backend

    Hi,

    for one of our projects we need to create a Login as Member button. I started to create a plugin for this where I add a button in the membership settings when onclick it needs to login the member and go to a page ( which is defined using a content picker ).

    I know the password is stored in hash, but is there a way to make this plugin work or create some sort of impersonation so that you use your own credenials but see everything of the member in the frontend?

    /Michaël

  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Aug 22, 2016 @ 11:36
    Damiaan
    100

    You will have to fallback to the FormsAuthentication.

    FormsAuthentication.SetAuthCookie(username, false)
    

    That is what the MembershipHelper internally also uses: https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web/Security/MembershipHelper.cs#L212

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Aug 22, 2016 @ 12:12
    Michaël Vanbrabandt
    0

    @Damiaan,

    thanks for the help.

    /Michaël

  • Damiaan 442 posts 1302 karma points MVP 6x c-trib
    Aug 22, 2016 @ 12:14
    Damiaan
    0

    Good luck. I hope you keep this thread updated when you succeed. ;-)

    Glad I could help.

    Damiaan

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Aug 22, 2016 @ 13:13
    Michaël Vanbrabandt
    1

    The plugin is almost ready. I will post a link to the plugin.

    /Michaël

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Aug 22, 2016 @ 14:14
    Michaël Vanbrabandt
    0

    @Damiaan,

    you can find the package here

    /Michaël

  • 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