diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-01-20 23:27:24 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-01-20 23:27:24 +0800 |
| commit | 03e3c3faf2bd22f36e6bd73e5d0110a972d41ca7 (patch) | |
| tree | a495fac6576d4539f3c657c731f1b4dae2eb94c0 /frontend/admin | |
| parent | d857e078c575a8e1ac2e50cd2e7bafc09aa53f9f (diff) | |
pw
Diffstat (limited to 'frontend/admin')
| -rw-r--r-- | frontend/admin/admin.js | 6 |
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"); } |
