summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils.cpp
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2019-01-22 17:41:00 +0000
committerSara Golemon <sara.golemon@mongodb.com>2019-01-26 02:20:22 +0000
commit82e05d6c201fa59223aa40340a5d4ad84b32ac65 (patch)
tree56946c4531bb45be3d0e37f5a92f1692efb4288c /src/mongo/shell/shell_utils.cpp
parent7f23fe72f78d2ec6ac84cbb75ac8a6bcce977e82 (diff)
downloadmongo-82e05d6c201fa59223aa40340a5d4ad84b32ac65.tar.gz
SERVER-39128 Avoid double-authentication
Diffstat (limited to 'src/mongo/shell/shell_utils.cpp')
-rw-r--r--src/mongo/shell/shell_utils.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/shell/shell_utils.cpp b/src/mongo/shell/shell_utils.cpp
index e44832d9e35..7f8521c6058 100644
--- a/src/mongo/shell/shell_utils.cpp
+++ b/src/mongo/shell/shell_utils.cpp
@@ -78,7 +78,6 @@ MONGO_REGISTER_SHIM(BenchRunConfig::createConnectionImpl)
namespace shell_utils {
std::string _dbConnect;
-std::string _dbAuth;
const char* argv0 = 0;
void RecordMyLocation(const char* _argv0) {
@@ -349,9 +348,6 @@ void initScope(Scope& scope) {
if (!_dbConnect.empty()) {
uassert(12513, "connect failed", scope.exec(_dbConnect, "(connect)", false, true, false));
}
- if (!_dbAuth.empty()) {
- uassert(12514, "login failed", scope.exec(_dbAuth, "(auth)", true, true, false));
- }
}
Prompter::Prompter(const string& prompt) : _prompt(prompt), _confirmed() {}