Skip to content

Fix login 404/500 errors by validating last_context#311

Open
Ishant5436 wants to merge 2 commits into
algora-io:mainfrom
Ishant5436:fix-login-404-500
Open

Fix login 404/500 errors by validating last_context#311
Ishant5436 wants to merge 2 commits into
algora-io:mainfrom
Ishant5436:fix-login-404-500

Conversation

@Ishant5436
Copy link
Copy Markdown

Fixes #183, fixes #186, fixes #302. When a user's previous context (e.g. personal organization handle) is changed or deleted, their session or database last_context might still refer to the old handle. This caused the signed_in_path to redirect to a 404 page (or 500 error) immediately upon login, preventing them from accessing the app. This PR ensures that last_context is validated against the database before redirecting, and falls back to Accounts.default_context() if the context no longer exists.

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.

constant 500 page , cant even login When I login, page shows me 500 always bug: unable to login to account

1 participant