Hello Umbraco Colleagues, I'm having difficulty with Membership and Login in Umbraco 4.0.4.1. I'm been trying to develop a custom login control for the ASP.Net membership provider in Umbraco without success.
(Is this not the way to go - given that the Umbraco Member API is being obsoleted?)
I have set up the Members, Member Groups, and Member Types using Umbraco's built-in functionality.
However, if I put a regular login control on the page (<asp:Login ID="Login1" runat="server"></asp:Login>), I'm able to log in successfully. I don't understand this and many other aspects of using the ASP.Net membership provider with Umbraco - and I've read everying I can find.
For many reasons, I don't want to use the out-of-the-box login control. I'd like to build my own.
If the reason you want to write your own control is because of the markup supplied by the login control you can add the control to a user control/web form and then in design mode go to the control tasks and choose "convert to template".
All your code needs to work is to have textbox's labeled the same e.g. <asp:TextBox ID="UserName" runat="server"></asp:TextBox>.
ASP.Net membership provider in Umbraco
Hello Umbraco Colleagues,
I'm having difficulty with Membership and Login in Umbraco 4.0.4.1.
I'm been trying to develop a custom login control for the ASP.Net membership provider in Umbraco without success.
(Is this not the way to go - given that the Umbraco Member API is being obsoleted?)
I have set up the Members, Member Groups, and Member Types using Umbraco's built-in functionality.
Using this:
does not work. No authentication occurs.
However, if I put a regular login control on the page (<asp:Login ID="Login1" runat="server"></asp:Login>), I'm able to log in successfully.
I don't understand this and many other aspects of using the ASP.Net membership provider with Umbraco - and I've read everying I can find.
For many reasons, I don't want to use the out-of-the-box login control. I'd like to build my own.
Any help is greatly appreciated. Thanks!
David Hill
PS - Hope you're all enjoying Codegarden 2010!!!
David,
If the reason you want to write your own control is because of the markup supplied by the login control you can add the control to a user control/web form and then in design mode go to the control tasks and choose "convert to template".
All your code needs to work is to have textbox's labeled the same e.g. <asp:TextBox ID="UserName" runat="server"></asp:TextBox>.
As an example here is a control I have created:
I also suggest looking at the http://our.umbraco.org/projects/osmembercontrols/ package - either to sue or for ideas.
Cheers
Paul
Thanks, Paul.
I guess I'll have to use the ASP.Net login control if I want to use the ASP.NET Membership Provider model.
David
This is the line of code you will have to use :
Returns true if username and password matches.
Login timeout is set in web.config
is working on a reply...