diff --git a/example/cpp/td_example.cpp b/example/cpp/td_example.cpp index 35f363062..4771e5417 100644 --- a/example/cpp/td_example.cpp +++ b/example/cpp/td_example.cpp @@ -273,7 +273,7 @@ class TdExample { [this](td_api::authorizationStateWaitPassword &) { std::cout << "Enter authentication password: " << std::flush; std::string password; - std::getline(std::cin, line); + std::getline(std::cin, password); send_query(td_api::make_object(password), create_authentication_query_handler()); },