1

I have created a custom membership provider for SharePoint FBA. In the ValidateUser method, i am verifying the username and password. The problem is that login is verified even if the password doesn't match. The If condition for password returns true in all cases.

  if (user != null)
            {


               if(password==pass)
                {

                    return true;

                }
                else
                {
                    return false;
                }

            }

            else

                return false;

I have tried password.equals and string.compare methods also but got the same result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.