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); } } }
public bool LoginAndVerify() { User = new UserService(this); if(!Verified && !User.LoggedIn) { if(User.TryLogin()) { Verified = true; return true; } } return false; }