summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/admin/admin.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/frontend/admin/admin.js b/frontend/admin/admin.js
index 5a194c9..74d60b4 100644
--- a/frontend/admin/admin.js
+++ b/frontend/admin/admin.js
@@ -7,10 +7,8 @@ async function login() {
method: "POST",
credentials: "include",
headers: {
- "Content-Type": "text/plain"
+ "Content-Type": "application/json"
},
- body: field.value,
+ body: {"password": field.value},
});
-
- alert("loggin' in");
}