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 09, 2009 @ 18:35
    Inmedia
    0

    Member login problem

    Hi people

    I am developing a website for a customer who wants a password protected area. So I went ahead and downloaded the Member Controls Pack from the Package Repository and installed it.

    Created a new document type and a new template for the login page. The code for the form looks as follows:

    <form runat="server">
    <umbraco:Macro LogOutOnly="0" LoggedInText="You are logged in as %%NAME%%" SignOutLinkText="Sign out" Alias="MemberLogin" runat="server"></umbraco:Macro>
    </form>

    The form renders correct, but when I type in the username and password, which I defined when I chose the page to apply the "Public Acces" on, Nothing happens... I just keep seeing the login page. By the way, I chose the Simple login solution for my Public Acces page.

    Does anyone have any idea of what I am doing wrong here??

    Im using Umbraco 4...

  • Sjors Pals 617 posts 270 karma points
    Jul 09, 2009 @ 18:51
    Sjors Pals
    0

    Are you logging in with a Member name? Because this does not work for Users i think....

  • Inmedia 124 posts 176 karma points
    Jul 09, 2009 @ 19:23
    Inmedia
    0

    Yes, im logging in with a membername.

  • Paul Sterling 719 posts 1556 karma points MVP 10x admin c-trib
    Jul 09, 2009 @ 20:05
    Paul Sterling
    0

    I belive the member controls in the package repository are for v3 only...I *think.*  Still, you can accomplish what you want by using the ASP.NET member controls in your template.  Try replacing your snippet above with:

    <asp:Login ID="yourid" runat="server" />

    Also, you can use the other ASP.NET member controls as-is.

    -Paul

  • Inmedia 124 posts 176 karma points
    Jul 09, 2009 @ 22:54
    Inmedia
    0

    Hi Paul

    I might ask a very dumb question now... But bare with me, Im not used to working with asp.net

    Do I have to replace the ID="yourid" with something?

    I know what the ID does when working with css, is it just the same thing when working with asp?

    Again, sorry for my ignorance :)

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 10, 2009 @ 00:15
    Dirk De Grave
    0

    Inmedia,

     

    Nope, each asp.net control requires a unique id to be identifiable when the page is being built. Call it whatever you want, just make sure the id is unique throughout all asp.net controls on the page.

     

    Cheers,

    /Dirk

  • Inmedia 124 posts 176 karma points
    Jul 10, 2009 @ 11:56
    Inmedia
    0

    Okay. I tried replacing my previous form with this:

    <form runat="server">
                <asp:Login ID="yourid" runat="server" />
    </form>

    Then I right click on the page I want protected, and chose "Public acces". I chose the simple solution with one single login and password. I set the login page to the page with the form and my error page to some random page (just to try making it work first).

    That should be it, right?

    But now, when I try to login in I get the message "Your login attempt was not successful. Please try again."

    Do I have to set the login and password somewhere else?

    And I shouldn't have to edit the macro at any time, do I?

     

  • 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