| Index: remoting/client/simple_client.cc
|
| ===================================================================
|
| --- remoting/client/simple_client.cc (revision 49299)
|
| +++ remoting/client/simple_client.cc (working copy)
|
| @@ -176,16 +176,19 @@
|
| return 1;
|
| }
|
|
|
| - // Get auth token.
|
| - std::string auth_token;
|
| - std::cout << "Auth Token: ";
|
| - getline(std::cin, auth_token);
|
| + // 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;
|
|
|
| // The message loop that everything runs on.
|
| MessageLoop main_loop;
|
| SimpleHostEventHandler handler(&main_loop);
|
| HostConnection connection(new ProtocolDecoder(), &handler);
|
| - connection.Connect(username, auth_token, host_jid);
|
| + connection.Connect(username, password, host_jid);
|
|
|
| // Run the message.
|
| main_loop.Run();
|
|
|