BugzillaInterface.BugService.LoginAsUser C# (CSharp) Method

LoginAsUser() public method

public LoginAsUser ( UserService user ) : void
user UserService
return void
        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);
                }
            }
        }