diff options
Diffstat (limited to 'lib/auth/legacy.js')
-rw-r--r-- | lib/auth/legacy.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/auth/legacy.js b/lib/auth/legacy.js index 2da82e361..7929ccc64 100644 --- a/lib/auth/legacy.js +++ b/lib/auth/legacy.js @@ -1,15 +1,12 @@ -const log = require('npmlog') const profile = require('npm-profile') - +const log = require('../utils/log-shim') const openUrl = require('../utils/open-url.js') const read = require('../utils/read-user-info.js') const loginPrompter = async (creds) => { - const opts = { log: log } - - creds.username = await read.username('Username:', creds.username, opts) + creds.username = await read.username('Username:', creds.username) creds.password = await read.password('Password:', creds.password) - creds.email = await read.email('Email: (this IS public) ', creds.email, opts) + creds.email = await read.email('Email: (this IS public) ', creds.email) return creds } |