Browse Source

Hide the credit card number once it's submitted

master
Matheus Fernandes 8 years ago
parent
commit
a3d66c3ccd
No known key found for this signature in database GPG Key ID: DD07CA4EA7B65C4F
  1. 3
      bin/now-billing-add.js

3
bin/now-billing-add.js

@ -136,8 +136,9 @@ module.exports = function (creditCards) {
state.ccv.placeholder = '#'.repeat(3)
}
brand = chalk.cyan(`[${brand}]`)
const masked = chalk.gray('#### '.repeat(3)) + result.split(' ')[3]
process.stdout.write(
`${chalk.cyan('✓')} ${piece.label}${result} ${brand}\n`
`${chalk.cyan('✓')} ${piece.label}${masked} ${brand}\n`
)
} else if (key === 'ccv') {
process.stdout.write(

Loading…
Cancel
Save