Skip to content

London | 26-SDC-Mar | Zobeir Rigi | Legacy code | Sprint 1 | Fix login from profile page after logout#249

Open
Zobeir-Rigi wants to merge 1 commit into
CodeYourFuture:mainfrom
Zobeir-Rigi:cant-log-in-from-profile
Open

London | 26-SDC-Mar | Zobeir Rigi | Legacy code | Sprint 1 | Fix login from profile page after logout#249
Zobeir-Rigi wants to merge 1 commit into
CodeYourFuture:mainfrom
Zobeir-Rigi:cant-log-in-from-profile

Conversation

@Zobeir-Rigi

Copy link
Copy Markdown
  • 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

Bug

After viewing a user's profile, logging out, and then logging back in, the application displayed a server error page instead of returning to the profile view.

Fix

Updated the login form on the profile page to attach the event handler to the form's submit event instead of a non-existent element. This ensures the login request is handled correctly and prevents the browser's default form submission.

@Zobeir-Rigi Zobeir-Rigi added 📅 Sprint 1 Assigned during Sprint 1 of this module Module-Legacy-Code The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Legacy-Code The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant