aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2015-06-27 21:20:57 +0200
committerJohannes Zellner <johannes@nebulon.de>2015-06-27 21:20:57 +0200
commitc7576037fe9bddd8a81a8bc897c60712b6f5bca3 (patch)
tree3eb9b0fa9e21f4738b25a7299ec5618a6f26e491
parentfb372a32db34ec511fa64ccd35c1d536a2c1b3e0 (diff)
downloadSurfer-c7576037fe9bddd8a81a8bc897c60712b6f5bca3.tar.gz
Surfer-c7576037fe9bddd8a81a8bc897c60712b6f5bca3.tar.zst
Surfer-c7576037fe9bddd8a81a8bc897c60712b6f5bca3.zip
Add and remove logs
-rw-r--r--cli/actions.js4
1 files changed, 2 insertions, 2 deletions
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) {
67 var password = readlineSync.question('Password: ', { hideEchoBack: true }); 67 var password = readlineSync.question('Password: ', { hideEchoBack: true });
68 68
69 superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) { 69 superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) {
70 console.log(result.status);
71
72 if (result.status === 401) { 70 if (result.status === 401) {
73 console.log('Login failed.'); 71 console.log('Login failed.');
74 process.exit(1); 72 process.exit(1);
@@ -81,6 +79,8 @@ function login(server) {
81 config.set('password', password); 79 config.set('password', password);
82 80
83 gQuery = { username: username, password: password }; 81 gQuery = { username: username, password: password };
82
83 console.log('Done');
84 }); 84 });
85} 85}
86 86