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
Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public bool ChangePasswordQuestionAndAnswer(string applicationName, string username, string password, string newPasswordQuestion, string newPasswordAnswer)
        {
            _Provider.ApplicationName = _ApplicationName;

            return(_Provider.ChangePasswordQuestionAndAnswer(username, password, newPasswordQuestion, newPasswordAnswer));
        }