Repository navigation
London | 26-SDC-July | Raihan Sharif | Sprint 2 | Cannot login from profile page - #316
Open
RaihanSharif wants to merge 1 commit into
Open
RaihanSharif wants to merge 1 commit into
RaihanSharif wants to merge 1 commit into
Conversation
additional fix: same problem when logging in from hashtag view
RaihanSharif
force-pushed
the
login-fix
branch
from
October 21, 2026 14:11
aebf6ee to
afe8b8d
Compare
LonMcGregor
reviewed
Nov 9, 2026
LonMcGregor
left a comment
There was a problem hiding this comment.
Great, this identifies the problem and solves it in two views where it happens
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
additional fix: same problem when logging in from hashtag view
Learners, PR Template
Self checklist
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.