09 Apr 2015
24 Jul 2015
Link to this post
I'm trying to implement CustomMembershipProvider, I need to override ValidateUser(userName, password) method, to use my own service for validation, and it's never reached. Can anyone tell me the right way to get it work ?
I've implemented provider described in http://www.sitefinity.com/documentation/documentationarticles/create-the-custom-membership-provider-class , also implemented GetUsers() method returning an empty IQueryable. I've added new provider described in http://docs.sitefinity.com/custom-membership-provider-add-the-new-provider-to-the-sitefinity-providers-collection, I've created Login page based on http://docs.sitefinity.com/custom-membership-provider-create-the-public-login-page-that-uses-the-new-provider, I have set MembershipProvider to "CustomMembershipProvider".
1. CustomMembershipProvider ctor - fires
2. GetUsers() method returning an empty IQueryable - fires
3. ValidateUser(userName, password) - never fire (on Login page getting message "Incorrect Username/Password Combination")