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 => {