diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 19:01:08 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 19:01:08 +0000 |
commit | 722d8eab5034806b347a17cd5c6a10a98feb35f9 (patch) | |
tree | 5f9ae56c70ae1a815a519e1f6de652560138da55 /remoting/client/simple_client.cc | |
parent | c551e2fcd56d5c05305414d6384aa74a359e22df (diff) | |
download | chromium_src-722d8eab5034806b347a17cd5c6a10a98feb35f9.zip chromium_src-722d8eab5034806b347a17cd5c6a10a98feb35f9.tar.gz chromium_src-722d8eab5034806b347a17cd5c6a10a98feb35f9.tar.bz2 |
Token-based authentication for chromoting.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2749004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49298 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/simple_client.cc')
-rw-r--r-- | remoting/client/simple_client.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/remoting/client/simple_client.cc b/remoting/client/simple_client.cc index ff74312..da65b2a 100644 --- a/remoting/client/simple_client.cc +++ b/remoting/client/simple_client.cc @@ -176,19 +176,16 @@ int main(int argc, char** argv) { return 1; } - // Get password (with console echo turned off). - std::string password; - SetConsoleEcho(false); - std::cout << "Password: "; - getline(std::cin, password); - SetConsoleEcho(true); - std::cout << std::endl; + // Get auth token. + std::string auth_token; + std::cout << "Auth Token: "; + getline(std::cin, auth_token); // The message loop that everything runs on. MessageLoop main_loop; SimpleHostEventHandler handler(&main_loop); HostConnection connection(new ProtocolDecoder(), &handler); - connection.Connect(username, password, host_jid); + connection.Connect(username, auth_token, host_jid); // Run the message. main_loop.Run(); |