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

Forums / Developing with Sitefinity / Custom Login page in 5.1

Custom Login page in 5.1

3 posts, 0 answered
  1. David
    David avatar
    3 posts
    Registered:
    06 Jun 2012
    14 Aug 2012
    Link to this post
    In my Sitefinity 5.0 site, I had a custom login page for frontend users. When unauthenticated users tried to access a restricted page, I redirected them to our front-end login page using custom errors.

    In Sitefinity 5.1, attempting to access a page for which you don't have permission simply results in Sitefinity redirecting the user to the internal backend "Login to manage the site" login.

    Is there a way to configure Sitefinity to use my login page instead of the built-in backend login page?
  2. Keith
    Keith avatar
    3 posts
    Registered:
    12 Sep 2012
    19 Feb 2013 in reply to David
    Link to this post

    Please let me know if you have resolved this issue.  We are also experiencing this in our site, except users are actually being sent to the back-end login page when they try to go to our front-end login page using 5.1.

  3. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    31 May 2017
    22 Feb 2013
    Link to this post
    Hi,

    Please review the following blog post where you will find further information:

    http://www.sitefinity.com/blogs/stefani-tacheva-s-blog/2013/02/01/redirect-unauthorized-users-to-a-custom-page

    Note that the blog post is for Sitefinity versions 5.1 SP2 and above.

    For Sitefinity 5.1 and Sitefinity 5.1 SP1 what we would suggest you is to use custom errors. These custom errors are coming from ASP.NET application. Sitefinity do not redirect users to the login page when they are not authenticated. However, this message can be handled in the customErrors element in you web.config to automatically redirect the user to the login screen.

    For instance:
    <customErrors mode="On" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="~/Sitefinity" />
    </customErrors>

    Change the redirect page to the page you want.

    You can also handle the 401 error as well. Custom errors can be places in your web.config file of the project.

    All the best,
    Stefani Tacheva
    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
3 posts, 0 answered