TeamSpeak3/Node/Host.php
public function login($username, $password)
    {
        $this->execute("login", array("client_login_name" => $username, "client_login_password" => $password));
        $this->whoamiReset();

        $crypt = new Crypt($username);

        $this->setStorage("_login_user", $username);
        $this->setStorage("_login_pass", $crypt->encrypt($password));

        Signal::getInstance()->emit("notifyLogin", $this);
    }
public function login($username, $password)
    {
        $this->execute("login", array("client_login_name" => $username, "client_login_password" => $password));
        $this->whoamiReset();

        $crypt = new Crypt($username);

        $this->setStorage("_login_user", $username);
        $this->setStorage("_login_pass", $crypt->encrypt($password));

        Signal::getInstance()->emit("notifyLogin", $this);
    }
Authenticates with the TeamSpeak 3 Server instance using given ServerQuery login credentials.

@param  string $username
@param  string $password
@return void