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

Forums / Developing with Sitefinity / Requiring Login

Requiring Login

4 posts, 1 answered
  1. Miles
    Miles avatar
    32 posts
    Registered:
    23 Nov 2011
    16 Jan 2012
    Link to this post
    I'm extremely new to Sitefinity and I'm wanting to create a section of my website that will require a user to login in order for them to view it. I would like to be able to drag a widget onto the page template I'm using for this section and have it check for a specific role.

    Is there anything that already exists that I could use? Or do I need to build something from scratch? (in which case can someone point me in the right direction).

    I'm using a fresh installation of Sitefinity 4.4

    Thank you
  2. Grace Hallwachs
    Grace Hallwachs avatar
    144 posts
    Registered:
    03 Nov 2014
    18 Jan 2012
    Link to this post
    Hi Miles,

    There is a login widget you can place on your page template. I have included some documentation on the login widget group. These widgets can be placed on your form and then be utilized from there.

    Concerning roles, you can assign users to roles. I have included some documentation on roles and users. Also if you wish to create a custom widget, I have included a link to a video. This video was created for 4.0 but the same concepts still apply to Sitefinity 4.4. Also if you wish to override the existing functionality of a widget, I have included a blog post that goes into further detail on how to do this.

    Let me know if you have any other questions.

    All the best,
    Grace Hallwachs
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Miles
    Miles avatar
    32 posts
    Registered:
    23 Nov 2011
    19 Jan 2012
    Link to this post
    Nice, I was needing to modify the permissions for my root page to only allow specific roles to be able to view it.

    Now that I've made that change, when I try to view one of the restricted pages as a user who doesn't have access (or a user who isn't logged in) I see a This type of page is not served error. Is there anyway to redirect the user to the log in screen instead of them seeing this generic unknown error page?
  4. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    19 Jan 2012
    Link to this post
    Miles,

    That's normal behavior. To get rid of it, you'll need to implement custom error page functionality.
4 posts, 1 answered