Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password/Hidden inputs not hidden #187

Open
perry-mitchell opened this issue Feb 27, 2018 · 1 comment
Open

Password/Hidden inputs not hidden #187

perry-mitchell opened this issue Feb 27, 2018 · 1 comment

Comments

@perry-mitchell
Copy link

Typing a password shows both the password and the mask characters:

Prompt not hidden

@milesje
Copy link

milesje commented Oct 8, 2018

I know this is kinda late to be posting to this, but this working fine for me.

 var schema = {
            properties: {
               password: {
                    description: colors.bgBlack.cyan('Password'),
                    replace: '*',
                    required: true,
                    hidden: true
                }
        }
  }

prompt.get(schema, function err, result){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants