Commit c7576037 by Johannes Zellner

Add and remove logs

1 parent fb372a32
Showing with 2 additions and 2 deletions
...@@ -67,8 +67,6 @@ function login(server) { ...@@ -67,8 +67,6 @@ function login(server) {
var password = readlineSync.question('Password: ', { hideEchoBack: true }); var password = readlineSync.question('Password: ', { hideEchoBack: true });
superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) { superagent.get(server + API + '/').query({ username: username, password: password }).end(function (error, result) {
console.log(result.status);
if (result.status === 401) { if (result.status === 401) {
console.log('Login failed.'); console.log('Login failed.');
process.exit(1); process.exit(1);
...@@ -81,6 +79,8 @@ function login(server) { ...@@ -81,6 +79,8 @@ function login(server) {
config.set('password', password); config.set('password', password);
gQuery = { username: username, password: password }; gQuery = { username: username, password: password };
console.log('Done');
}); });
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!