Copied to clipboard

Flag this post as spam?

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


  • Martin Sørensen 33 posts 31 karma points
    Aug 09, 2009 @ 21:03
    Martin Sørensen
    0

    Member Controls: Not entering password restricted area after login

    Hi,

    I'm running 4.0.2.1 and can't get Member control to work.
    I have installed the package from Hartvig.
    It worked when I was using 4.0.0 but now it stays at my login page after succesfull login.
    I get the text that tells my I'm logged in and eventhough I try to go directly to the page where it's password restricted.
    What is wrong?

    /Martin

  • Simon Justesen 436 posts 203 karma points
    Aug 10, 2009 @ 00:22
    Simon Justesen
    1

    Which package is that? the membercontrols package? it is a bit outdated as you can use standard asp.net controls in umbraco v4. Much easier :)

  • Martin Sørensen 33 posts 31 karma points
    Aug 10, 2009 @ 09:49
    Martin Sørensen
    0

    Since I do most of my programming in VB and never really got to learn ASP.NET then you might tell me where I find this functionallity?
    Thanks.

  • Martin Sørensen 33 posts 31 karma points
    Aug 10, 2009 @ 14:08
    Martin Sørensen
    0

    ok,

    I have used the guide from Morten Bock:
    http://www.mortenbock.dk/setting-up-membership-in-umbraco-116.htm

    And I able to login.
    But still, after login is succesfull and I enter <LoggedInTemplate> It simply won't show nothing else but this.
    I won't show me the content of my password protected section.
    I have made a section which is protected and a Login page with the code from Morten Bocks guide.

    Why won't it show me the content of the protected pages? It goes to the login page no matter what I do.

    /Martin

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 10, 2009 @ 14:17
    Dirk De Grave
    0

    Martin,

    Can you show some of the code you've got in your template (assuming you've been using Morten's approach)? It's hard to find what's not working from your comments!

     

    Cheers,

    /Dirk

  • Martin Sørensen 33 posts 31 karma points
    Aug 11, 2009 @ 07:31
    Martin Sørensen
    0
    Web.config
    <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Bruger" passwordFormat="Hashed" />
    Login template:
    <asp:content ContentPlaceHolderId="Indhold" runat="server">
     <div id="forside">
     <div class="Overskrift">
     <umbraco:Item field="Overskrift" case="upper" runat="server"></umbraco:Item>
     </div>
     <br/><br/>
     <umbraco:Item field="Indhold" runat="server"></umbraco:Item>
     <br/><br/>
     <center>
     <form runat="server">
      <asp:LoginView ID="UmbracoLoginView" runat="server">
      <AnonymousTemplate>
       <asp:Login ID="Login1" runat="server"></asp:Login>
      </AnonymousTemplate>
      <LoggedInTemplate>
       <p>Velkommen<asp:LoginName ID="LoginName1" runat="server" /></p>
       <p><asp:LoginStatus ID="LoginStatus1" runat="server" /></p>
      </LoggedInTemplate>
      </asp:LoginView>
     </form>
    </center>
     </div>
    </asp:content>

    The password protected folder is set up to use the group I have created "Privat" and using my Login page which uses the above template.
    I have none of above code in the template which is used for the folder I wan't to protect.

  • Martin Sørensen 33 posts 31 karma points
    Aug 11, 2009 @ 13:26
    Martin Sørensen
    0

    The Problem seems have been solved.
    My user was not added to the member group.

    Anyway when I login in now I'm being redirected to protected page.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 11, 2009 @ 13:47
    Dirk De Grave
    0

    ...was about to suggest that, but found that would have been a rather stupid question... well, you know for next time now! thanks for sharing your answer!

     

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft