aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/js
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2017-02-09 13:02:41 +0100
committerJohannes Zellner <johannes@cloudron.io>2017-02-09 13:02:41 +0100
commit9b7a26fc3708ac42d7d29c4329adbde465d29220 (patch)
treedba380079611e9a9e89f0e6e869c94ec5aa57a97 /frontend/js
parent0af9051c2e2497362c5c118886347c72283d6b88 (diff)
downloadSurfer-9b7a26fc3708ac42d7d29c4329adbde465d29220.tar.gz
Surfer-9b7a26fc3708ac42d7d29c4329adbde465d29220.tar.zst
Surfer-9b7a26fc3708ac42d7d29c4329adbde465d29220.zip
Send username/password in body and fix cli
Diffstat (limited to 'frontend/js')
-rw-r--r--frontend/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js
index b07560a..de61dcf 100644
--- a/frontend/js/app.js
+++ b/frontend/js/app.js
@@ -27,7 +27,7 @@ function login(username, password) {
27 27
28 app.busy = true; 28 app.busy = true;
29 29
30 superagent.post('/api/login').query({ username: username, password: password }).end(function (error, result) { 30 superagent.post('/api/login').send({ username: username, password: password }).end(function (error, result) {
31 app.busy = false; 31 app.busy = false;
32 32
33 if (error) return console.error(error); 33 if (error) return console.error(error);