From 0af9051c2e2497362c5c118886347c72283d6b88 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 9 Feb 2017 12:55:01 +0100 Subject: Do not show * for password entry --- cli/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/actions.js b/cli/actions.js index ea2a3a1..a862b4b 100644 --- a/cli/actions.js +++ b/cli/actions.js @@ -63,7 +63,7 @@ function login(uri) { console.log('Using server', server.cyan); 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) { if (error && error.code === 'ENOTFOUND') { -- cgit v1.2.3