Copied to clipboard

Flag this post as spam?

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


  • Scott Campbell 4 posts 24 karma points
    Jul 19, 2011 @ 06:24
    Scott Campbell
    0

    Login with Password only?

    I am currently researching a move of our site over to Umbraco.

    To keep the same functionality that our site currently has I am trying to find information on how to do password only logins to our product download pages. Our product download pages show the latest version of the product and contain input boxes requesting the customers details for signing up to a newsletter, and a password field to get into the product downloads (each product login page has a different password). I have been unable to find information on how to put the same functionality into Umbraco.

    How can I make a page in Umbraco that requires a password only?

     

    Thanks

  • Paul Blair 466 posts 731 karma points
    Jul 21, 2011 @ 01:06
    Paul Blair
    0

    Hi,

    Here is one method you could try:

     - create a user in the Umbraco backend

     - set up the .net login control with the username hard-coded and hidden via CSS

     - secure the page against this user

    Cheers

    Paul

  • Scott Campbell 4 posts 24 karma points
    Aug 01, 2011 @ 09:31
    Scott Campbell
    0

    The method I ended up using to make it work the same as we already had was to put .NET code into a new template.

    The template now looks something like this:

    <asp:content ID="Content1" ContentPlaceHolderId="cp_content" runat="server">
    <%if (Request.Form["password"]!="password") {%>
    HTML to show if password is wrong
              ...
              <TR>
                <TD class="bodytext1"><B>Password:</B> </TD>
                <TD><INPUT type="password"  name="password" size="45" class="formfield" value=""></TD>
              </TR>
              ...
    <%} else {%>
    Logged In
    <umbraco:Item ID="Item2" runat="server" field="bodyText" />
    <%}%>
    </asp:content>

Please Sign in or register to post replies

Write your reply to:

Draft