]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Do not show * for password entry
authorJohannes Zellner <johannes@cloudron.io>
Thu, 9 Feb 2017 11:55:01 +0000 (12:55 +0100)
committerJohannes Zellner <johannes@cloudron.io>
Thu, 9 Feb 2017 11:55:01 +0000 (12:55 +0100)
cli/actions.js

index ea2a3a1d1e5b6280151bf3ea7076b31da54c902d..a862b4ba90cf11e71596f37b0ce0693370cfece6 100644 (file)
@@ -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') {