diff options
Diffstat (limited to 'deps/npm/lib/token.js')
-rw-r--r-- | deps/npm/lib/token.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/lib/token.js b/deps/npm/lib/token.js index 8745bf9b0e..d442d37eb8 100644 --- a/deps/npm/lib/token.js +++ b/deps/npm/lib/token.js @@ -164,7 +164,7 @@ function rm (args) { return profile.removeToken(key, conf).catch((ex) => { if (ex.code !== 'EOTP') throw ex log.info('token', 'failed because revoking this token requires OTP') - return readUserInfo.otp('Authenticator provided OTP:').then((otp) => { + return readUserInfo.otp().then((otp) => { conf.auth.otp = otp return profile.removeToken(key, conf) }) @@ -192,7 +192,7 @@ function create (args) { return profile.createToken(password, readonly, validCIDR, conf).catch((ex) => { if (ex.code !== 'EOTP') throw ex log.info('token', 'failed because it requires OTP') - return readUserInfo.otp('Authenticator provided OTP:').then((otp) => { + return readUserInfo.otp().then((otp) => { conf.auth.otp = otp log.info('token', 'creating with OTP') return pulseTillDone.withPromise(profile.createToken(password, readonly, validCIDR, conf)) |