Skip to content

Barcelona | Oct-2025 | Angela Onyekwelu | Module-Legacy-Code | Sprint-1 | Fix login - #1

Open
theangelskies wants to merge 1 commit into
mainfrom
login-fix
Open

Barcelona | Oct-2025 | Angela Onyekwelu | Module-Legacy-Code | Sprint-1 | Fix login#1
theangelskies wants to merge 1 commit into
mainfrom
login-fix

Conversation

@theangelskies

Copy link
Copy Markdown
Owner

Fix login event listener to use 'submit' instead of 'click' in hashtag and profile views

Learners, PR Template

Self checklist

  • I have titled my PR with Barcelona | Oct-2025 | Angela Onyekwelu | Module-Legacy-Code | Sprint-1 | Fix login
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Briefly explain your PR.
Fix login not working from profile/hashtag pages
Logging in from the profile or hashtag view silently failed (browser fell back to a native form POST → 501 from the dev server), because both views bound the login handler to a click on [data-action="proxy.php?url=https%3A%2F%2Fgithub.com%2Ftheangelskies%2FModule-Legacy-Code%2Fpull%2Flogin"], an element that doesn't exist in the login template. profile.mjs and hashtag.mjs now bind handleLogin to the form's submit event via [data-form='login'], matching home.mjs/bloom.mjs.

Questions

Ask any questions you have for your reviewer. You must remove this section if you have no questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant