Copied to clipboard

Flag this post as spam?

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


  • Elad Lachmi 112 posts 144 karma points
    Aug 13, 2011 @ 19:06
    Elad Lachmi
    0

    Creating memebers of different types

    Hi,

    I have been running an Umbraco site for some time. I had just one member type, and everything worked well.

    Now I want to add another member type, with different profile properties and I want to be able to create users of both types.

    I have one usercontrol which creates the default user type, via the CreateUserWizard and now I want to make another usercontrol which creates the other kind of user.

    How can I do this?

    Thank you!

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 14, 2011 @ 14:36
    Dirk De Grave
    2

    Elad,

    Should be doable by creating a second membership provider, and setting a different member type (as a property on the provider) and make sure to explicitely specify the provider on the createuserwizard (and all other asp.net "login" controls)

    <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="
    <providers>
    <clear />
    <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
    <add name="UmbracoMembershipProvider2" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type 2" passwordFormat="Hashed" />
    <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
    </providers>
    </membership>

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft