More in this section

Forums / Developing with Sitefinity / Redirect to custom login page with LoginView

Redirect to custom login page with LoginView

3 posts, 0 answered
  1. Kevin
    Kevin avatar
    42 posts
    15 Mar 2005
    15 Apr 2009
    Link to this post
    I am currently using a LoginView control at the top of all my pages, and I notice that when I click on the Login text or image in any of the login controls I am redirected to Sitefinity's login page (.../Sitefinity/Login.aspx), but I would like to use my own login page at "~/Login.aspx".  Unfortunately, I don't see any properties in LoginView or the other login controls where I can specify the location of the login page I wish to use.  Is there a way to modify this?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    16 Apr 2009
    Link to this post
    Hi Kevin,

    You can try changing loginUrl attribute in the line below. Thus, the requests will be redirected to the page you have specified.

    <authentication mode="Forms"
                <forms name=".ASPNET" loginUrl="~/sitefinity/login.aspx" protection="All" timeout="1440" path="/" /> 

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Holly
    Holly avatar
    4 posts
    06 May 2009
    22 May 2009
    Link to this post
    Thank you, this post was very helpful to me. It is found in the web.config file, by the way for beginners like me.
Register for webinar
3 posts, 0 answered