Skip to content

Commit 47828b7

Browse files
darcyclarkeDarcy Clarke
authored andcommitted
chore: update one-time password prompt
1 parent 6734ba3 commit 47828b7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/auth/legacy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const login = async (npm, opts) => {
1616

1717
const requestOTP = async () => {
1818
const otp = await read.otp(
19-
'Enter one-time password from your authenticator app: '
19+
'Enter one-time password: '
2020
)
2121

2222
return profile.loginCouch(

lib/commands/profile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class Profile extends BaseCommand {
321321
} else if (userInfo && userInfo.tfa) {
322322
if (!conf.otp) {
323323
conf.otp = await readUserInfo.otp(
324-
'Enter one-time password from your authenticator app: '
324+
'Enter one-time password: '
325325
)
326326
}
327327
}
@@ -386,7 +386,7 @@ class Profile extends BaseCommand {
386386
const password = await readUserInfo.password()
387387

388388
if (!conf.otp) {
389-
const msg = 'Enter one-time password from your authenticator app: '
389+
const msg = 'Enter one-time password: '
390390
conf.otp = await readUserInfo.otp(msg)
391391
}
392392

test/lib/commands/profile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ t.test('enable-2fa', t => {
689689
async otp (label) {
690690
t.equal(
691691
label,
692-
'Enter one-time password from your authenticator app: ',
692+
'Enter one-time password: ',
693693
'should ask for otp confirmation'
694694
)
695695
return '123456'
@@ -1044,7 +1044,7 @@ t.test('disable-2fa', t => {
10441044
async otp (label) {
10451045
t.equal(
10461046
label,
1047-
'Enter one-time password from your authenticator app: ',
1047+
'Enter one-time password: ',
10481048
'should ask for otp confirmation'
10491049
)
10501050
return '1234'

0 commit comments

Comments
 (0)