Copied to clipboard

Flag this post as spam?

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


  • Henrik Hammarström 58 posts 54 karma points
    Sep 07, 2009 @ 18:59
    Henrik Hammarström
    0

    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

  • Simon Justesen 436 posts 203 karma points
    Sep 07, 2009 @ 21:38
    Simon Justesen
    2

    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

  • SiKo279 82 posts 238 karma points
    Sep 08, 2009 @ 07:24
  • Henrik Hammarström 58 posts 54 karma points
    Sep 08, 2009 @ 20:37
    Henrik Hammarström
    0

    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

     

  • Simon Justesen 436 posts 203 karma points
    Sep 08, 2009 @ 21:18
    Simon Justesen
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft