Skip to content

Commit 0afe4f1

Browse files
committed
chore: update one-time password prompt
Backports: 47828b7
1 parent 5848324 commit 0afe4f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/auth/legacy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function login (opts) {
5252
.catch((err) => {
5353
if (err.code !== 'EOTP') throw err
5454
return read.otp(
55-
'Enter one-time password from your authenticator app: '
55+
'Enter one-time password: '
5656
).then(otp => {
5757
const u = opts.creds.username
5858
const p = opts.creds.password

lib/profile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function enable2fa (args) {
249249
return pulseTillDone.withPromise(profile.set({tfa: {password, mode: 'disable'}}, conf))
250250
} else {
251251
if (conf.auth.otp) return
252-
return readUserInfo.otp('Enter one-time password from your authenticator app: ').then((otp) => {
252+
return readUserInfo.otp('Enter one-time password: ').then((otp) => {
253253
conf.auth.otp = otp
254254
})
255255
}
@@ -310,7 +310,7 @@ function disable2fa (args) {
310310
return readUserInfo.password().then((password) => {
311311
return BB.try(() => {
312312
if (conf.otp) return
313-
return readUserInfo.otp('Enter one-time password from your authenticator: ').then((otp) => {
313+
return readUserInfo.otp('Enter one-time password: ').then((otp) => {
314314
conf = conf.concat({otp})
315315
})
316316
}).then(() => {

0 commit comments

Comments
 (0)