Skip to content

fix: handle stale login redirect contexts (#183)#288

Open
tomaspinkas-com wants to merge 1 commit into
algora-io:mainfrom
tomaspinkas-com:fix/login-stale-context-183
Open

fix: handle stale login redirect contexts (#183)#288
tomaspinkas-com wants to merge 1 commit into
algora-io:mainfrom
tomaspinkas-com:fix/login-stale-context-183

Conversation

@tomaspinkas-com
Copy link
Copy Markdown

$## Summary

  • validate the saved last_context before using it as a signed-in redirect target
  • keep valid org contexts going to /{org}/dashboard
  • fall back to /home when the saved handle is stale or points at an individual user
  • add controller tests covering stale-handle and org-context redirects

Why

Issue #183 reports users getting redirected to an old GitHub handle after renaming their account, which leads to a 404 after login. The redirect logic trusted last_context blindly and treated any handle as an org dashboard target.

Fixes #183

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 20, 2026

CLA assistant check
All committers have signed the CLA.

@tomaspinkas-com tomaspinkas-com force-pushed the fix/login-stale-context-183 branch from 3fc9c87 to c44c161 Compare May 20, 2026 18:33
@tomaspinkas-com tomaspinkas-com force-pushed the fix/login-stale-context-183 branch from c44c161 to 39b71e2 Compare May 20, 2026 18:42
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.

bug: unable to login to account

2 participants