public void ClearTextBoxes() { PreviousPassword.Clear(); PasswordBox1.Clear(); PasswordBox2.Clear(); IncorrectPasswordLabel.Visible = false; }
public void IncorrectPreviousPasswordEntered() { PreviousPassword.Clear(); PasswordBox1.Clear(); PasswordBox2.Clear(); IncorrectPasswordLabel.Visible = true; }
public override ADL_PreviousPassword MapPreviousPasswordtoDLPreviousPassword(PreviousPassword previouspassword) { var result = new MOCK_DL_PreviousPassword(); result.CustomerId = previouspassword.CustomerId; result.CreationDate = previouspassword.CreationDate; result.Salt = previouspassword.Salt; result.PasswordHash = previouspassword.PasswordHash; return(result); }
public override IEnumerable <ValidationResult> Validate(ValidationContext validationContext) { if (AccessToken.IsNullOrEmpty()) { yield return(new ValidationResult(Messages.EmailIsRequired, new[] { nameof(AccessToken) })); } if (ConfirmProposedPassword.IsNullOrEmpty()) { yield return(new ValidationResult(Messages.ConfirmPasswordIsRequired, new[] { nameof(ConfirmProposedPassword) })); } if (PreviousPassword.IsNullOrEmpty()) { yield return(new ValidationResult(Messages.CurrentPasswordRequired, new[] { nameof(PreviousPassword) })); } if (ProposedPassword != ConfirmProposedPassword) { yield return(new ValidationResult(Messages.PasswordsDoNotMatch, new[] { nameof(ConfirmProposedPassword), nameof(ProposedPassword) })); } }
public abstract ADL_PreviousPassword MapPreviousPasswordtoDLPreviousPassword(PreviousPassword previouspassword);