Skip to content

Commit

Permalink
chore: update one-time password prompt
Browse files Browse the repository at this point in the history
Backports: 47828b7
  • Loading branch information
ruyadorno committed Jan 18, 2022
1 parent 5848324 commit 0afe4f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/auth/legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function login (opts) {
.catch((err) => {
if (err.code !== 'EOTP') throw err
return read.otp(
'Enter one-time password from your authenticator app: '
'Enter one-time password: '
).then(otp => {
const u = opts.creds.username
const p = opts.creds.password
Expand Down
4 changes: 2 additions & 2 deletions lib/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function enable2fa (args) {
return pulseTillDone.withPromise(profile.set({tfa: {password, mode: 'disable'}}, conf))
} else {
if (conf.auth.otp) return
return readUserInfo.otp('Enter one-time password from your authenticator app: ').then((otp) => {
return readUserInfo.otp('Enter one-time password: ').then((otp) => {
conf.auth.otp = otp
})
}
Expand Down Expand Up @@ -310,7 +310,7 @@ function disable2fa (args) {
return readUserInfo.password().then((password) => {
return BB.try(() => {
if (conf.otp) return
return readUserInfo.otp('Enter one-time password from your authenticator: ').then((otp) => {
return readUserInfo.otp('Enter one-time password: ').then((otp) => {
conf = conf.concat({otp})
})
}).then(() => {
Expand Down

0 comments on commit 0afe4f1

Please sign in to comment.