aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2017-02-09 12:55:01 +0100
committerJohannes Zellner <johannes@cloudron.io>2017-02-09 12:55:01 +0100
commit0af9051c2e2497362c5c118886347c72283d6b88 (patch)
tree83a62eb568470676d284b44956c0ff8aaa71fe4e
parentd6f2f18584365e8c32ebde83daf316333b98abd0 (diff)
downloadSurfer-0af9051c2e2497362c5c118886347c72283d6b88.tar.gz
Surfer-0af9051c2e2497362c5c118886347c72283d6b88.tar.zst
Surfer-0af9051c2e2497362c5c118886347c72283d6b88.zip
Do not show * for password entry
-rw-r--r--cli/actions.js2
1 files changed, 1 insertions, 1 deletions
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) {
63 console.log('Using server', server.cyan); 63 console.log('Using server', server.cyan);
64 64
65 var username = readlineSync.question('Username: '); 65 var username = readlineSync.question('Username: ');
66 var password = readlineSync.question('Password: ', { noEchoBack: true }); 66 var password = readlineSync.question('Password: ', { hideEchoBack: true, mask: '' });
67 67
68 superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) { 68 superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) {
69 if (error && error.code === 'ENOTFOUND') { 69 if (error && error.code === 'ENOTFOUND') {