System.Web.Security.MembershipProvider.ChangePasswordQuestionAndAnswer C# (CSharp) Method

ChangePasswordQuestionAndAnswer() public abstract method

public abstract ChangePasswordQuestionAndAnswer ( string name, string password, string newPwdQuestion, string newPwdAnswer ) : bool
name string
password string
newPwdQuestion string
newPwdAnswer string
return bool
		public abstract bool ChangePasswordQuestionAndAnswer (string name, string password, string newPwdQuestion, string newPwdAnswer);
		public abstract MembershipUser CreateUser (string username, string password, string email, string pwdQuestion, string pwdAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status);

Usage Example

        public override bool ChangePasswordQuestionAndAnswer(string username,
                                                             string password,
                                                             string newPasswordQuestion,
                                                             string newPasswordAnswer)
        {
            var result = PrimaryMembershipProvider.ChangePasswordQuestionAndAnswer(username,
                                                                                   password,
                                                                                   newPasswordQuestion,
                                                                                   newPasswordAnswer);

            if (result)
            {
                var user = GetHybridMembershipUser(username);
                if (user != null)
                {
                    base.ChangePasswordQuestionAndAnswer(username, password, newPasswordQuestion, newPasswordAnswer, false);
                }
            }
            return(result);
        }
All Usage Examples Of System.Web.Security.MembershipProvider::ChangePasswordQuestionAndAnswer