protected void Fetch(UserPasswordResetData data)
 {
     this.UserId = data.UserId;
     this.Email = data.Email;
     this.Password = string.Empty;
     this.PasswordConfirmation = string.Empty;
     this.Token = data.Token;
     this.TokenExpirationDate = data.TokenExpirationDate;
 }
 protected void Update(UserPasswordResetData data)
 {
     data.UserId = this.UserId;
     data.Email = this.Email;
     data.Salt = PasswordHelper.GetSalt(Settings.SaltSize);
     data.Password = PasswordHelper.Salt(data.Salt, this.Password);
     data.Token = string.Empty;
     data.TokenExpirationDate = DateTime.MaxValue;
 }
        protected override void DataPortal_Update()
        {
            using (var dalManager = DataFactoryManager.GetManager())
            {
                var dalFactory = dalManager.GetProvider<IUserPasswordResetDataFactory>();

                var data = new UserPasswordResetData();

                using (this.BypassPropertyChecks)
                {
                    this.Update(data);

                    data = dalFactory.Update(data);
                }
            }
        }