Commit 0af9051c by Johannes Zellner

Do not show * for password entry

1 parent d6f2f185
Showing with 1 additions and 1 deletions
...@@ -63,7 +63,7 @@ function login(uri) { ...@@ -63,7 +63,7 @@ function login(uri) {
console.log('Using server', server.cyan); console.log('Using server', server.cyan);
var username = readlineSync.question('Username: '); var username = readlineSync.question('Username: ');
var password = readlineSync.question('Password: ', { noEchoBack: true }); var password = readlineSync.question('Password: ', { hideEchoBack: true, mask: '' });
superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) { superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) {
if (error && error.code === 'ENOTFOUND') { if (error && error.code === 'ENOTFOUND') {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!