From e3722e3ef730282578158fbe9504e2b0da583e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 19:17:21 +0100 Subject: [PATCH] Change up js --- assets/scripts/global/account.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/scripts/global/account.js b/assets/scripts/global/account.js index f9d71aa..0090282 100644 --- a/assets/scripts/global/account.js +++ b/assets/scripts/global/account.js @@ -1,6 +1,10 @@ -function login() { +function login(){ const email = document.getElementById("email").value; const password = document.getElementById("password").value; + doLogin(email, password); +} + +function doLogin(email, password) { const data = new URLSearchParams(); data.append("action", "login");