Lines Matching refs:info
10 const readUserInfo = require('../utils/read-user-info.js')
109 const info = await pulseTillDone.withPromise(
113 if (!info.cidr_whitelist) {
114 delete info.cidr_whitelist
118 this.npm.output(JSON.stringify(info, null, 2))
125 cleaned[key] = info[key] || ''
128 const unknownProfileKeys = Object.keys(info).filter((k) => !(k in cleaned))
130 cleaned[key] = info[key] || ''
135 cleaned.email += info.email_verified ? ' (verified)' : '(unverified)'
137 if (info.tfa && !info.tfa.pending) {
138 cleaned[tfa] = info.tfa.mode
153 for (const key of Object.keys(info)) {
157 this.npm.output(`${key}\t${info[key]}`)
257 const info = {
285 log.info('profile', 'Updating authentication to bearer token')
307 info.tfa.password = password
309 log.info('profile', 'Determine if tfa is pending')
316 log.info('profile', 'Resetting two-factor authentication')
328 log.info('profile', 'Setting two-factor authentication to ' + mode)
330 npmProfile.set(info, conf)
358 log.info('profile', 'Finalizing two-factor authentication')
378 const info = await pulseTillDone.withPromise(npmProfile.get(conf))
380 if (!info.tfa || info.tfa.pending) {
392 log.info('profile', 'disabling tfa')