diff --git a/.gitignore b/.gitignore index e43b0f98..4c2d0008 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,18 @@ +# Python virtual environments +.venv/ +venv/ +ENV/ + +# Python cache +__pycache__/ +*.pyc + +# Database data (CRITICAL: Do not commit the database itself) +db/pg_data/ + +# Environment secrets (Security risk!) +.env + +# OS/IDEs .DS_Store +.vscode/ \ No newline at end of file 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) {