From 175ca90ba5331e7c1eff52da736071b39ec1a6db Mon Sep 17 00:00:00 2001 From: Alessandro Ferro <49845537+xfarrow@users.noreply.github.com> Date: Tue, 26 Mar 2024 09:35:44 +0100 Subject: [PATCH] forgot-password.html working --- frontend/vanilla/html/forgot-password.html | 91 ++++++++++++++++++---- frontend/vanilla/html/login.html | 6 +- 2 files changed, 79 insertions(+), 18 deletions(-) diff --git a/frontend/vanilla/html/forgot-password.html b/frontend/vanilla/html/forgot-password.html index e704ea4..a0d62cc 100644 --- a/frontend/vanilla/html/forgot-password.html +++ b/frontend/vanilla/html/forgot-password.html @@ -9,12 +9,13 @@ - + + + + \ No newline at end of file diff --git a/frontend/vanilla/html/login.html b/frontend/vanilla/html/login.html index 3357c43..8c3b52e 100644 --- a/frontend/vanilla/html/login.html +++ b/frontend/vanilla/html/login.html @@ -102,12 +102,12 @@ * This function is responsible for the log-in process */ async function login() { - const email = document.getElementById("email").value; - const password = document.getElementById("password").value; - if (!validateFields()) { return; } + const email = document.getElementById("email").value; + const password = document.getElementById("password").value; + const response = await fetch(`${API_URL}/persons/me/token`, { method: "POST",