More in this section

Forums / Developing with Sitefinity / login control - specify login page?

login control - specify login page?

4 posts, 0 answered
  1. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    09 Feb 2009
    Link to this post
    Hi

    I've dragged a login control to the webpage, however, i was hoping to click edit and be able to specify a login page, rather than it redirecting to the default login page (when you've clicked on the login button)

    is this easy to do for this control?
    thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    09 Feb 2009
    Link to this post
    Hi Quade,

    Open your web.config file and alter loginUrl argument. Thus, all request form non authenticate users will be redirected to the page you set. On this page you should have Login control.

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

    I hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Meister
    Meister avatar
    262 posts
    Registered:
    09 Nov 2007
    09 Feb 2009
    Link to this post
    thanks
    will this take over the default login if i browse to the admin backend directly?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Feb 2009
    Link to this post
    Hello Quade,

    This change will affect only requests from non authenticated users. If you hit http://domain.com/yourproject/sitefinity/login.aspx or http://domain.com//sitefinity/login.aspx you will be redirected to Sitefinity login. Here you are calling the login.aspx file that is under /Sitefinity directory.

    Let us know if there is anything else that we can do for you.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered