Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Inmedia 124 posts 176 karma points
    Jul 13, 2009 @ 15:38
    Inmedia
    0

    Password protection

    Hi

    Im trying to create a site that should have password protection on certain content. Im using Umbraco 4 and have been told NOT to use the Member Controls Package from the repository.

    I have no experience with ASP.NET so I have no idea how to do this?

    Can someone please help me out by explaining step by step how to do this?

    I allready tried on my own by using the ASP Login Controler, but I must have done something wron, cause it wont login.

  • Timsn 121 posts 231 karma points
    Jul 13, 2009 @ 16:01
    Timsn
    0

    Hi,

    if you want to use role based protection with ASP Login Forms you have to include something like this in your template:

    At next you have to go to the umbraco backend into the members section and create a member group and a member with a password and assign it to the group.

    Then in the Content section you have to right click the content node you would like to protect and select role based protection. Select the group you have created and select your login page that contains the login form from above as "login page".

    Greetings,
    Timsn

  • Timsn 121 posts 231 karma points
    Jul 13, 2009 @ 16:02
    Timsn
    0

    Sorry for the bad formatting... here is the right form code

    <asp:LoginView ID="UmbracoLoginView" runat="server">
    <AnonymousTemplate>
    <asp:Login ID="Login1" runat="server"></asp:Login>
    </AnonymousTemplate>
    <LoggedInTemplate>
    <p>Welcome <asp:LoginName ID="LoginName1" runat="server" /></p>
    <p><asp:LoginStatus ID="LoginStatus1" runat="server" /></p>
    </LoggedInTemplate>
    </asp:LoginView>
  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Jul 13, 2009 @ 18:36
    Morten Bock
    0

    I wrote a blogpost about setting up very simple membership features:

    http://www.mortenbock.dk/setting-up-membership-in-umbraco-116.htm

    Maybe that can be a starting point?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies