More in this section

Forums / Developing with Sitefinity / Loginview control

Loginview control

5 posts, 0 answered
  1. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    05 Aug 2009
    Link to this post
    How can I assign a Rolegroups to  Loginview control?
    It is greyed out.
  2. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    05 Aug 2009
    Link to this post
    I am trying to create a page which needs to accessed by only certain members. All these members fall into a particular Role.
  3. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    06 Aug 2009
    Link to this post
    Hello Rabindra,

    By default on all pages, the Everyone role's permissions are set to disable, but pages' Anonymous access is set to Allow.  All you need to do is to deny the "Anonymous access" to those pages. Furthermore, allow at least the View permission for your role (see attachments).

    Now each time a user wants to view that page he will be redirected to the "Login" page first.

    Kind regards,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  4. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    06 Aug 2009
    Link to this post
    thank for the reply.

    If everything works just by changing page permissions to particular role and deny "Anonymous access" then what is the point of having Loginview control?
    When to use LoginView control? any examples?
  5. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    07 Aug 2009
    Link to this post
    Hi Rabindra,

    I am not sure how you want this to work but here is what I have in mind:
    1. Place the "Login" public control on some page that is accessible to all users.
    2. Open the controls "Edit" and in the "Misc" section click on the "Edit" button.
    3. Open the "Behavior" section and in the "DestinationPageUrl" select one of the non public page.
    4. Save.

    This way a user can go to the public page -> then login and from there he will be automatically navigated to the non public page.

    The reason for this controls to exist is that sometimes people place "Firewalls" to deny users form trying to login inside the CMS's admin section. Also the "Login" control can be styled more easily and it is much more handy.

    Best wishes,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Register for webinar
5 posts, 0 answered