Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/auth
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-08-04 08:55:18 +0300
committerisaacs <i@izs.me>2020-08-04 11:03:34 +0300
commit0b63d5078a5858b83dba943720c6d6dfe6eb808f (patch)
treeca53f0aa241bcb3d7a4fea32eb92bec6bd251d1a /lib/auth
parent5302cf3d24860283c6952fc6aa5611b95701cee3 (diff)
Fix lingering figgy puddy in login
Diffstat (limited to 'lib/auth')
-rw-r--r--lib/auth/legacy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/auth/legacy.js b/lib/auth/legacy.js
index ebf526e48..c42ef16bb 100644
--- a/lib/auth/legacy.js
+++ b/lib/auth/legacy.js
@@ -52,7 +52,7 @@ function login (opts) {
).then(otp => {
const u = opts.creds.username
const p = opts.creds.password
- return profile.loginCouch(u, p, opts.concat({ otp }))
+ return profile.loginCouch(u, p, { ...opts, otp })
})
}).then((result) => {
const newCreds = {}