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:
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) ?
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:
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
Is your custom memebership provider being invoked? If you set a break point will it be hit?
Basic question: Did you set it up in the web.config?
is working on a reply...