Skip to content

Commit

Permalink
Merge pull request #75 from memgraph/password_propagation_fix
Browse files Browse the repository at this point in the history
Password was not passed through bolt config to MemgraphDB correctly
  • Loading branch information
tonijurjevic96 committed Jul 3, 2024
2 parents 6c791bc + 710ce9a commit cc1c207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/interactive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace mode::interactive {

using namespace std::string_literals;

int Run(const utils::bolt::Config &bolt_config, const std::string &history, bool no_history,
int Run(utils::bolt::Config &bolt_config, const std::string &history, bool no_history,
bool verbose_execution_info, const format::CsvOptions &csv_opts, const format::OutputOptions &output_opts) {
Replxx *replxx_instance = InitAndSetupReplxx();

Expand All @@ -43,7 +43,7 @@ int Run(const utils::bolt::Config &bolt_config, const std::string &history, bool
auto password_optional = console::ReadLine(replxx_instance, "Password: ");
std::cout << std::endl;
if (password_optional) {
password = *password_optional;
bolt_config.password = *password_optional;
} else {
console::EchoFailure("Password not submitted", "Requested password for username " + bolt_config.username);
cleanup_resources();
Expand Down
2 changes: 1 addition & 1 deletion src/interactive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace mode::interactive {

int Run(const utils::bolt::Config &bolt_config, const std::string &history, bool no_history, bool verbose_execution_info,
int Run(utils::bolt::Config &bolt_config, const std::string &history, bool no_history, bool verbose_execution_info,
const format::CsvOptions &csv_opts, const format::OutputOptions &output_opts);

} // namespace mode::interactive

0 comments on commit cc1c207

Please sign in to comment.