Copied to clipboard

Flag this post as spam?

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


  • aaronb 97 posts 116 karma points
    Oct 29, 2009 @ 17:12
    aaronb
    0

    member controls issue - can't log in?

    I have installed the member controls package to a clean install, and run through the tutorial here: http://hartvig.com/screencasts/members.htm

    My problem is that when I submit the login form on the front end, I am just presented with the form - it doesn't display the 'logged in as' message. When I used the register page to create an account, I set my 'protected' page as the redirect to page. I was able to create an account via the register form, and then view the protected page. Once I logged out, I could not log back in again.

    It looks like the tutorial was created using a much older version of Umbraco than I'm using - is this likely to be the cause?

    Any suggestions on how or where I should start to look on this one would be very helpful.

     


  • aaronb 97 posts 116 karma points
    Oct 29, 2009 @ 18:00
    aaronb
    0

    I ran this on an older version, and it worked fine. Re-traced all my steps and it still won't work on the new build.

  • Tom Maton 387 posts 660 karma points
    Oct 29, 2009 @ 18:01
    Tom Maton
    0

    What version are you using for the old build and new build?

  • Tom Maton 387 posts 660 karma points
    Oct 29, 2009 @ 18:03
    Tom Maton
    0

    Whoops, didn't finish sentence.

    Because (I think it was 4.0.1) the members passwords became hashed and so you may have to add password="hashed" to your web.config

  • aaronb 97 posts 116 karma points
    Oct 29, 2009 @ 18:28
    aaronb
    0

    Thank you - old version was 4.0.0RC, new version is umbraco v 4.0.1 (Assembly version: 1.0.3373.718

    Please could you expand on the web.config change? do I just drop that line in anywhere or is it added to an existing part?

    Thanks again for the help!

     

     

  • aaronb 97 posts 116 karma points
    Oct 29, 2009 @ 18:31
    aaronb
    0

    I looked in my web config and found this part, I don't know if it was the correct part, but this is from the new site's (the one that isn't working) web.config

     

    <!-- Membership Provider -->

        <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">

          <providers>

            <clear />

            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />

            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />

          </providers>

        </membership>

  • aaronb 97 posts 116 karma points
    Oct 29, 2009 @ 19:47
    aaronb
    0

    I removed the passwordformat="hashed" from these two sections, and it seems to be mostly working now. Is there any better way around it, and/or is there any drawbacks to doing it this way?

  • Tom Maton 387 posts 660 karma points
    Nov 02, 2009 @ 17:07
    Tom Maton
    0

    I dont think there is as all the passwords are not hashed in your current environment so adding it back will just not allow users to login

    But removing the passwordformat should not cause any problems.

    Tom

  • 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.

Please Sign in or register to post replies