Skip to content

London | 26-SDC-July | Raihan Sharif | Sprint 2 | Cannot login from profile page - #316

Open
RaihanSharif wants to merge 1 commit into
CodeYourFuture:mainfrom
RaihanSharif:login-fix
Open

RaihanSharif wants to merge 1 commit into
CodeYourFuture:mainfrom
RaihanSharif:login-fix

Conversation

@RaihanSharif

Copy link
Copy Markdown

additional fix: same problem when logging in from hashtag view

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-1167

Changelist

In the profile view, the querySelector for the login form was using "[data-action='login']" rather than "[data-form='login']" to get the form element.

Inspecting the html shows that the form has a "[data-form='login']" attribute but no "[data-action='login']" attribute.

<form data-form="login" class="login__form" method="post">

Same problem in the hashtag view.

They also add a "click" event listener, so that when a form is correctly found in the DOM, clicking on it triggers the login handler, so I changed that to a "submit" event listener.

additional fix: same problem when logging in from hashtag view
@RaihanSharif RaihanSharif added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 19, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, this identifies the problem and solves it in two views where it happens

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Nov 9, 2026
@RaihanSharif

Copy link
Copy Markdown
Author

@LonMcGregor Thank you for the reviews.

I'm still waiting for review on the rebloom feature PR. I've also added the improve with cache and improve with precomputing PRs.

Would be really grateful if you could have a look at these. I'm just mindful that they might get removed as the new SDC course begins.

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

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants