Copied to clipboard

Flag this post as spam?

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


  • Phil Gilligan 25 posts 136 karma points
    Jan 19, 2015 @ 18:26
    Phil Gilligan
    0

    Member Export with Custom Membership Provider

    Hi Richard,

    I've created a custom membership provider to allow me to set certain access control properties such as minimum password length and set a minimum number of upper case and numeric characters for my password.

    I've done this by inheriting from UmbracoMembershipProvider and overriding the ChangePassword and ValidateUser methods in my custom provider.

    Unfortunately, this has broken MemberExport and I am receiving the following error:

    We are very sorry, but MemberExport only works with the default Umbraco Membership provider

    Please could you advise if there is a work around for this, or do I need to find some other way of enforcing my access control logic?

    Thanks in advance.

    Phil Gilligan

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jan 19, 2015 @ 18:48
    Richard Soeteman
    100

    Hi Phil,

    Yes this is possible since you are inheriting from the default provider. See section 6.2 of the manual http://soetemansoftware.nl/member-export/downloads how to configure memberexport for that scenario.

    Basically you need to add the type of your custom provider to memberexport.config

    <supportedMemberAPIProviders>
        <provider typeName="Customproviders.members.membershipprovider"/>
      </supportedMemberAPIProviders>
    

    Hope this helps,

    Richard

  • Phil Gilligan 25 posts 136 karma points
    Jan 19, 2015 @ 18:50
    Phil Gilligan
    0

    Brilliant!  Thanks Richard.

Please Sign in or register to post replies

Write your reply to:

Draft