From e27085fb7f7915086892bcf7173f8a93a431055f Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Sat, 25 Aug 2018 23:35:49 -0700 Subject: [PATCH] Docs: mention --otp flag when prompting for OTP --- lib/utils/read-user-info.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/read-user-info.js b/lib/utils/read-user-info.js index 445bdfeea3e84..1e8c86a52379f 100644 --- a/lib/utils/read-user-info.js +++ b/lib/utils/read-user-info.js @@ -21,9 +21,9 @@ function read (opts) { function readOTP (msg, otp, isRetry) { if (!msg) { msg = [ - 'There was an error while trying authentication due to OTP (One-Time-Password).', - 'The One-Time-Password is generated via applications like Authy or', - 'Google Authenticator, for more information see:', + 'This command requires a one-time password (OTP) from your authenticator app.', + 'Enter one below. You can also pass one on the command line by appending --otp=123456.', + 'For more information, see:', 'https://docs.npmjs.com/getting-started/using-two-factor-authentication', 'Enter OTP: ' ].join('\n')