From 8500e2da536277a6b3d2c287f80bb13534d2b8fe Mon Sep 17 00:00:00 2001 From: BJTS2005 <131892808+BJTS2005@users.noreply.github.com> Date: Wed, 18 Jun 2025 19:51:59 -0500 Subject: [PATCH 1/5] logo solucion --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index e7c4417..d4d053d 100644 --- a/src/index.html +++ b/src/index.html @@ -9,7 +9,7 @@
- + From 9d1221a87b73da0e7e23e67c0b6f8d78a2b30caa Mon Sep 17 00:00:00 2001 From: BJTS2005 <131892808+BJTS2005@users.noreply.github.com> Date: Wed, 18 Jun 2025 19:59:40 -0500 Subject: [PATCH 2/5] correccion issue email --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index d4d053d..6697a59 100644 --- a/src/index.html +++ b/src/index.html @@ -14,7 +14,7 @@ - + From 22c7252f10785fd02ea18389d06212d8c6f591b6 Mon Sep 17 00:00:00 2001 From: BJTS2005 <131892808+BJTS2005@users.noreply.github.com> Date: Wed, 18 Jun 2025 20:00:44 -0500 Subject: [PATCH 3/5] correccion issue password --- src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 6697a59..d5031a0 100644 --- a/src/index.html +++ b/src/index.html @@ -17,7 +17,7 @@ - +
From b40715430f7b167849d80e1fcf2fe55109052542 Mon Sep 17 00:00:00 2001 From: BJTS2005 <131892808+BJTS2005@users.noreply.github.com> Date: Wed, 18 Jun 2025 20:02:24 -0500 Subject: [PATCH 4/5] correccion issue css --- src/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles.css b/src/styles.css index 25969e5..2cf6850 100644 --- a/src/styles.css +++ b/src/styles.css @@ -2,7 +2,7 @@ body { height: 100vh; display: flex; /* TODO: Adjust CSS so that form is centered on page */ - align-items: center; + justify-content: center; } form { From e40599debf454725d78b9396205c859f41f35c3a Mon Sep 17 00:00:00 2001 From: BJTS2005 <131892808+BJTS2005@users.noreply.github.com> Date: Wed, 18 Jun 2025 20:09:45 -0500 Subject: [PATCH 5/5] correccion issue script --- src/script.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/script.js b/src/script.js index 4e3be16..351c6eb 100644 --- a/src/script.js +++ b/src/script.js @@ -24,10 +24,13 @@ addEventListener("submit", (event) => { console.log(`email submitted: ${email}`); console.log(`password submitted: ${password}`); - /* - TODO: - 1. Check if the email and password are valid (using the usersTable) - 2. If they are, call renderSuccess() - 3. If they are not, call renderError() - */ + + let user = usersTable.find((user) => user.username === email); + + if (user && user.password === password){ + renderSuccess(); + }else{ + renderError(); + } + });