From 0c4f37bab3d0d67eb8c356a410618229511af0cf Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 2 Feb 2024 12:20:17 +0100 Subject: [PATCH] convert to jsonless --- assets/scripts/global/account.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scripts/global/account.js b/assets/scripts/global/account.js index 5dddf7c..054da98 100644 --- a/assets/scripts/global/account.js +++ b/assets/scripts/global/account.js @@ -8,11 +8,11 @@ function login() { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ + body: { action: 'login', email: email, password: password - }), + }, }) .then(response => response.json()) .then(data => {