示例#1
0
        public void LoginAsUser(UserService user)
        {
            if(user.LoggedIn)
            {
                // store the ref to the user so we can get the cookies later
                User = user;

                // TODO: should we be doing this later?
                foreach(Cookie c in user.LoginCookies)
                {
                    bugProxy.CookieContainer.Add(c);
                }
            }
        }
示例#2
0
 public bool LoginAndVerify()
 {
     User = new UserService(this);
     if(!Verified && !User.LoggedIn)
     {
         if(User.TryLogin())
         {
             Verified = true;
             return true;
         }
     }
     return false;
 }