Copied to clipboard

Flag this post as spam?

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


  • trendt 3 posts 23 karma points
    Mar 29, 2010 @ 08:36
    trendt
    0

    Overriding ValidateUser (custom MemberShipProvider)

    Hi :)

    I'm trying to override ValidateUser to make a custom MemberShipProvider and use my own user database to validate log in attempts (and provide roles). For testing purposes ValidateUser simply looks like this: 

    public override bool ValidateUser(string username, string password)
    {
         return true;
    }

     When i try to log in a user that is created as a Member in Umbraco everything appears to work BUT when I try to log in a member that is not created in Umbraco "GetRolesForUser" in my custom RoleProvider never gets called.

    What do I need to do besides overriding ValidateUser (in MemberShipProvider) and GetRolesForUser (in RoleProvider) ?

    Regards 

    Mads 

  • Aaron Powell 1708 posts 3044 karma points c-trib
    Mar 29, 2010 @ 23:52
    Aaron Powell
    0

    Is your custom memebership provider being invoked? If you set a break point will it be hit?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Mar 30, 2010 @ 00:05
    Morten Bock
    0

    Basic question: Did you set it up in the web.config?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies