diff options
Diffstat (limited to 'src/mongo/shell/db.js')
-rw-r--r-- | src/mongo/shell/db.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index 097e2398fe2..241937a52a2 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -1201,7 +1201,7 @@ DB.prototype._authOrThrow = function () { else if (arguments.length == 1) { if (typeof(arguments[0]) != "object") throw Error("Single-argument form of auth expects a parameter object"); - params = arguments[0]; + params = Object.extend({}, arguments[0]); } else { throw Error( |