From c7576037fe9bddd8a81a8bc897c60712b6f5bca3 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Sat, 27 Jun 2015 21:20:57 +0200 Subject: Add and remove logs --- cli/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') diff --git a/cli/actions.js b/cli/actions.js index 2bc0d7d..a5612b8 100644 --- a/cli/actions.js +++ b/cli/actions.js @@ -67,8 +67,6 @@ function login(server) { var password = readlineSync.question('Password: ', { hideEchoBack: true }); superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) { - console.log(result.status); - if (result.status === 401) { console.log('Login failed.'); process.exit(1); @@ -81,6 +79,8 @@ function login(server) { config.set('password', password); gQuery = { username: username, password: password }; + + console.log('Done'); }); } -- cgit v1.2.3