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??
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.
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.
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?
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...
Are you logging in with a Member name? Because this does not work for Users i think....
Yes, im logging in with a membername.
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:
Also, you can use the other ASP.NET member controls as-is.
-Paul
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 :)
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
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?
is working on a reply...
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.