Change up js

This commit is contained in:
Bruno Rybársky 2024-02-02 19:17:21 +01:00
parent f0327df728
commit e3722e3ef7

@ -1,6 +1,10 @@
function login(){ function login(){
const email = document.getElementById("email").value; const email = document.getElementById("email").value;
const password = document.getElementById("password").value; const password = document.getElementById("password").value;
doLogin(email, password);
}
function doLogin(email, password) {
const data = new URLSearchParams(); const data = new URLSearchParams();
data.append("action", "login"); data.append("action", "login");