Copied to clipboard

Flag this post as spam?

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


  • Jan Molbech 40 posts 126 karma points
    Oct 01, 2014 @ 09:44
    Jan Molbech
    0

    Extending membershipprovider

    I'm trying to create a new membershipprovider in Umbraco 7.1.4 and thus i'm extending my class with UmbracoMembershipProvider, but it wants a type. A type of what?

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Oct 01, 2014 @ 10:03
    Alex Skrypnyk
    0

    Hi Jan,

    Change the type of UmbracoMembershipProvider but leave the name the same.

    <membership defaultProvider="TechBureauMembershipProvider" userIsOnlineTimeWindow="2880">
            <providers>
                <clear/>
                <add name="UmbracoMembershipProvider" type="TechBureau.Web.providers.TechBureauMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed"/>
                <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed"/>
    

    THanks, Alex

  • Jan Molbech 40 posts 126 karma points
    Oct 01, 2014 @ 10:12
    Jan Molbech
    0

    No that's not it. When i'm writing my new provider class i have to extend the UmrbacoMemeshipProvider class

    public class MyCustomMembershipProvider:UmbracoMembershipProvider<aTypeOfWhat?>
        {
        }
    

    but it wants a type. a type of what?

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Oct 01, 2014 @ 10:37
    Alex Skrypnyk
    0

    If you want to create new membersip provider, you have to be nested from MembershipProvider class.

    public class MyMembershipProvider : MembershipProvider
    
Please Sign in or register to post replies

Write your reply to:

Draft