If you're using Umbraco 4, you should not be using the member control package, rather you can use the native membership provider in ASP.NET 2.x - 3.x . To make it work, create some member types and member groups and then make some adjustments to the member provider section in web.config.
When you need to display certain information to authenticated users, you can use XSLT-functions umbraco.library:HasAccess and umbraco.library:IsProtected to determine whether the user is logged in or not, and thereby display different page information of your choosing.
Umbraco doesn't know where to redirect to, so I guess you need to create the redirect in code yourself inside the <yourloginform>_authenticate() method. See this: http://www.eggheadcafe.com/articles/20060529.asp
memberlogin v4 of umbraco
Hi there
I have a question about memberlogin
I use the memberlogin package but I dont really understand it
I have an page on the top level with a few subpages and the subpages are protected with public access.
The login form are defind at the top level page
How should I do this
When the user is granted access I want to show a link to all subpages that also are protected?
When I loggin in all that happens it that Iam logged in I cant see any links that are in second level
Best regards
/Henrik
Hi Henrik,
If you're using Umbraco 4, you should not be using the member control package, rather you can use the native membership provider in ASP.NET 2.x - 3.x . To make it work, create some member types and member groups and then make some adjustments to the member provider section in web.config.
When you need to display certain information to authenticated users, you can use XSLT-functions umbraco.library:HasAccess and umbraco.library:IsProtected to determine whether the user is logged in or not, and thereby display different page information of your choosing.
HTH,
Simon
http://www.mortenbock.dk/setting-up-membership-in-umbraco-116.htm
http://www.aaron-powell.com/blog/july-2009/umbraco-member-profiles.aspx
are helpful links :)
Hi again but I still dont get it to work
my web.config look like
this
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="AF" />
have follow this article
www.mortenbock.dk/...membership-in-umbraco-116.htm
My content look like this
Startpage
page1
page2
loginpage
secretpage
sub1
sub2
I have rightclick secretpage and click on public access
I granted the group AF access
I choose loginpage as login and error page.
and secretpage and its subpages gets secured with the smal red Icon
Then I try my site and click on secretpage in my menu and I 'll get redirected to loginpage as I should
I logg in but I dont get back to secretpage ?
it just says "Welcome af"
why
What are Iam doing wrong here
why isnt it redirect
any tip?
/H
Hi Henrik,
Umbraco doesn't know where to redirect to, so I guess you need to create the redirect in code yourself inside the <yourloginform>_authenticate() method.
See this: http://www.eggheadcafe.com/articles/20060529.asp
is working on a reply...