Update td_example.cpp (#1254)

Read the whole password, not only the first word from it
This commit is contained in:
Nikolay Nechaev 2020-10-18 19:25:43 +03:00 committed by GitHub
parent fa91220f88
commit cecdae448e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ class TdExample {
[this](td_api::authorizationStateWaitPassword &) {
std::cout << "Enter authentication password: " << std::flush;
std::string password;
std::cin >> password;
std::getline(std::cin, line);
send_query(td_api::make_object<td_api::checkAuthenticationPassword>(password),
create_authentication_query_handler());
},