-
Notifications
You must be signed in to change notification settings - Fork 65
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
Hide Password when logging in #123
Comments
Hi @p1ho , how do you mean "the password is out in the open"? As you enter the password, it should be hidden. Can you provide a screenshot? |
huh, thats really interesting! It is hidden on MacOS and Linux afaik. We're simply using this library. I'll look into it a bit more though |
@tomquirk const prompt = require('prompt');
var x = new Promise((resolve, reject) => {
prompt.get(
[
{
name: "email",
required: true,
},
{
name: "password",
required: true,
hidden: true,
},
],
(err, result) => {
if (err) return reject(err);
return resolve(result);
},
);
}).then(result => {
console.log(result);
}); It's also not a version issue, because prompt should still be at version 1.0.0 UPDATE:
I don't know how this could make a difference, but the problem seems to have stemmed from the command aliasing by npm. |
Summary
When I logged in, the password is out in the open, it'd be nice if the password stays hidden.
Motivation
Security
The text was updated successfully, but these errors were encountered: