diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/actions.js | 4 |
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 | ||