Copied to clipboard

Flag this post as spam?

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


  • Audun Froysaa 4 posts 25 karma points
    Apr 20, 2011 @ 13:59
    Audun Froysaa
    0

    web.config membership

    Hello!

    My path to understanding Umbraco just hit a little stone in the road.

    I have read some threat regarding loginforms in umbraco, but the info is usually from 2008-2009 and may be outdated. I have created a UserControl in VS2010 and saved it to Umbraco as Login.ascx in the folder usercontrols.

    Also i have added it to my page and its working perfectly, but here is the problem:

    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="Clear" defaultMemberTypeAlias="WebUsers" />
          </providers>
        </membership>
         

    PasswordFormat is now "Clear" since Hash did not work. If i change the defaultMemberTypeAlias on the first entry to WebUsers it works as intended, but then the admin login won’t work at all. Changing it back to default the admin login works, but the user login does not.

    What am i missing? :-)

     

Please Sign in or register to post replies

Write your reply to:

Draft