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

Forums / Designing with Sitefinity / Creating a Public Login Page

Creating a Public Login Page

5 posts, 2 answered
  1. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    14 May 2010
    Link to this post
    Yes.

    It's me again.

    I'm sorry, I really am. 

    I've been trying to add a login page for users. I want to disallow anonymous postings to the forums.

    As you've prolly guessed, I'm having problems.

    I created a page (Login.aspx) and put a login control on it then saved the page. If I attempt to login as a user I've already created, I get an error when I click the login button.

    This type of page is not served.

    Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.aspx' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

    Requested URL: /YuangChi/Login.aspx


    Any attempts after this to access the page to view or edit returns the same error.

    Help.

    I've been ill you know!

    -- 
    Stuart
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 May 2010
    Link to this post
    Hello Stuart Hemming,

    Thank you for using our services.

    The exception you are getting is because the user you are logging in does not have the rights to View the requested page. Make sure that your login page does not have any permission settings applied to it. Pages do inherit permissions from their parents so if the login page is under a page which has permissions settings then these will be applied to the login page too, unless you break inheritance.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about 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. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    14 May 2010
    Link to this post
    God but you guys are quick!

    And yes, I'm sorted.

    When I edit the login control via the admin pages, the "misc" section includes a "Login" entry with is blank with an edit button.

    Clicking the edit button allows me to change the format of the dialog. I know that changing some of the values works 'cos I've set "Behaviour|RememberMeSet" to try and sure enough, it is. However, changing anything in "Layout" (I've tried both "TextLayout" and "Orientation") has no effect. Is this a known issue?

    -- 
    Stuart
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 May 2010
    Link to this post
    Hello Stuart Hemming,

    Yes this is a known issue.

    You can edit the layout template of the <asp:Login> control which is wrapped in the Login Control. Source code can be found here: ~/Sitefinity/UserControls/Login/LoginControl.ascx. You can also expose the properties that you wish in the code file of the Login Control:
    [System.ComponentModel.Category("Login")]
    public String RememberMeText
    {
        get
        {
            return this.Login1.RememberMeText;
        }
        set
        {
            this.Login1.RememberMeText = value;
        }
    }
    [System.ComponentModel.Category("Login")]
    public bool RememberMeSet
    {
        get
        {
            return this.Login1.RememberMeSet;
        }
        set
        {
            this.Login1.RememberMeSet = value;
        }
    }


    Regards,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
  5. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    14 May 2010
    Link to this post
    Cheers Radoslav.

    Nice one.

    -- 
    Stuart
Register for webinar
5 posts, 2 answered