+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Setup login widget that redirects to different pages depending on who logs in

Setup login widget that redirects to different pages depending on who logs in

3 posts, 1 answered
  1. Devon
    Devon avatar
    2 posts
    Registered:
    24 Aug 2015
    24 Aug 2015
    Link to this post

    I am trying to create a login page for users that redirects them to different pages depending on who logs in. I can see a way through the login widget that everyone will be redirected to just one page "DestinationPageURL", but nothing that let's you choose a different page for different logins.

    Thanks!

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    29 Nov 2016
    27 Aug 2015
    Link to this post
    Hello Devon,

    In order to achieve your needs you can subscribe for "ILoginCompletedEvent" and depending on the criteria you have to redirect to the respective page you need.

    More information could be found here: http://docs.sitefinity.com/for-developers-ilogincompletedevent

    This article could be also useful in case the user redirect is based on its role:
    http://docs.sitefinity.com/for-developers-users-and-roles#get-all-roles-for-user

    I hope the above information helps

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
    Answered
  3. Devon
    Devon avatar
    2 posts
    Registered:
    24 Aug 2015
    09 Sep 2015 in reply to Svetoslav Manchev
    Link to this post
    Thanks Svetoslav!
3 posts, 1 answered