Skip to content

Alicia Wynona Tjahjadi | Oct2025-1 | Module-Legacy-Code | Sprint-1 | Purple Forest: Bug Report: Can't log in from profile page - #1

Open
aliciawt wants to merge 1 commit into
mainfrom
fix/login-from-profile-page-501
Open

Alicia Wynona Tjahjadi | Oct2025-1 | Module-Legacy-Code | Sprint-1 | Purple Forest: Bug Report: Can't log in from profile page#1
aliciawt wants to merge 1 commit into
mainfrom
fix/login-from-profile-page-501

Conversation

@aliciawt

Copy link
Copy Markdown
Owner

Fix: 501 error when logging in from profile page

Problem

When logging out from a profile page and trying to log in again, users would get a 501 error.

Root Cause

  • Login form had no action attribute, so it submitted to the current URL
  • After logout, users remained on the profile page
  • Login form submitted to /profile/AS instead of /login

Solution

  • Added action="proxy.php?url=https%3A%2F%2Fgithub.com%2Flogin" to the login form
  • Added redirect to /login after logout
  • Added redirect to / after successful login

Testing

  • Login from home page works
  • Login from profile page works
  • Logout redirects to login page
  • No 501 error

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