From 4fbe73455354c30e4e7e9d3f4a61dd0453671d04 Mon Sep 17 00:00:00 2001 From: ZabihollahNamazi Date: Thu, 2 Jul 2026 13:02:02 +0100 Subject: [PATCH 1/2] git ignore --- .gitignore | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index e43b0f98..a0f3a019 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,11 @@ .DS_Store +# Virtual environments +venv/ +.venv/ +env/ +.env/ +ENV/ + +# Python cache files +__pycache__/ +*.pyc From a74a03eefec6b41c432190d3d384d06e0b029fbe Mon Sep 17 00:00:00 2001 From: ZabihollahNamazi Date: Thu, 2 Jul 2026 14:07:24 +0100 Subject: [PATCH 2/2] login --- front-end/views/profile.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-end/views/profile.mjs b/front-end/views/profile.mjs index dd2b92af..31139a9f 100644 --- a/front-end/views/profile.mjs +++ b/front-end/views/profile.mjs @@ -39,8 +39,8 @@ function profileView(username) { createLogin ); document - .querySelector("[data-action='login']") - ?.addEventListener("click", handleLogin); + .querySelector("[data-form='login']") + ?.addEventListener("submit", handleLogin); const profileData = state.profiles.find((p) => p.username === username); if (profileData) {