Skip to content

Commit

Permalink
fix(cpp-client): use std::getline for reading passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
kosak committed Jan 9, 2025
1 parent a25c7ee commit 000e84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp-client/deephaven/dhcore/src/utility/utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ std::string ObjectId(const std::string &class_short_name, void *this_ptr) {
std::string ReadPasswordFromStdinNoEcho() {
SetStdinEcho(false);
std::string password;
std::cin >> password;
std::getline(std::cin, password);
SetStdinEcho(true);
return password;
}
Expand Down

0 comments on commit 000e84f

Please sign in to comment.