public void ChangePasswordQuestionAndAnswerTest() { MembershipProvider p = CreateMembershipProvider(); MembershipCreateStatus st; MembershipUser u = p.CreateUser("userpwd2", "123123!", "*****@*****.**", "q", "a", true, null, out st); bool b = p.ChangePasswordQuestionAndAnswer("userpwd2", "123123!", "q2", "a2"); Assert.IsTrue(b); b = p.ChangePasswordQuestionAndAnswer("userpwd2", "123123!123", "q2", "a2"); Assert.IsFalse(b); }
public PasswordQAChangeReply CredentialChangePasswordQA(PasswordQAChangeRequest request) { try { PasswordQAChangeReply response = new PasswordQAChangeReply(); response.ResultStatus = _membership.ChangePasswordQuestionAndAnswer(request.UserName, request.Password, request.NewQuestion, request.NewAnswer); response.Status = ActionStatus.OK; return(response); } catch (Exception ex) { throw ex.NewFault(); } }
public bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) { return(MembershipProvider.ChangePasswordQuestionAndAnswer(username, password, newPasswordQuestion, newPasswordAnswer)); }
public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) { IsValidOperation(false); return(_prevProvider.ChangePasswordQuestionAndAnswer(username, password, newPasswordQuestion, newPasswordAnswer)); }
/// <summary> /// Validates the password strength. /// </summary> /// <param name="password">The password.</param> /// <returns></returns> public bool ValidatePasswordStrength(string password) { return(_Provider.ChangePasswordQuestionAndAnswer(null, password, null, null)); }
public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) { return(_Provider.ChangePasswordQuestionAndAnswer(username, password, newPasswordQuestion, newPasswordAnswer)); }