Exemplo n.º 1
0
 public void ClearTextBoxes()
 {
     PreviousPassword.Clear();
     PasswordBox1.Clear();
     PasswordBox2.Clear();
     IncorrectPasswordLabel.Visible = false;
 }
Exemplo n.º 2
0
 public void IncorrectPreviousPasswordEntered()
 {
     PreviousPassword.Clear();
     PasswordBox1.Clear();
     PasswordBox2.Clear();
     IncorrectPasswordLabel.Visible = true;
 }
Exemplo n.º 3
0
        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) }));
            }
        }
Exemplo n.º 5
0
 public abstract ADL_PreviousPassword MapPreviousPasswordtoDLPreviousPassword(PreviousPassword previouspassword);