Copied to clipboard

Flag this post as spam?

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


  • Ion Cracea 12 posts 93 karma points
    Mar 06, 2020 @ 16:26
    Ion Cracea
    0

    GetAllUsers method not called in CustomMembershipProvider

    Hi all, I've extended MemberMembershipProvider

    public class CustomMembershipProvider : MembersMembershipProvider
    

    and override some base methods like ValidateUser and GetAllUsers().

       public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
        { some code}
    
       public override bool ValidateUser(string username, string password)
        {code here}
    

    The problem is that Validate method gets called but when accessing Members page in Umbraco backoffice, the GetAllUsers is not getting called.

    I've also created a CustomMemberService which I pass to base contructor from CustommembershipProvider ctor

            public CustomMembershipProvider() : base(
            new CustomMemberService(),
            Current.Services.MemberTypeService)
            {
    
            }
    

    Any idea how can I override GetAllUsers users method in CustommembershipProvider class

    Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft