forgot-password.html working

This commit is contained in:
Alessandro Ferro
2024-03-26 09:35:44 +01:00
parent 97783ab96a
commit 175ca90ba5
2 changed files with 79 additions and 18 deletions

View File

@ -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",