Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New/reset installation fails when there's an existing login cookie for the user #2661

Open
ZeiP opened this issue Sep 13, 2021 · 0 comments
Open
Labels
bug 🐛 Problems with the code that result in unexpected or bad behavior

Comments

@ZeiP
Copy link
Member

ZeiP commented Sep 13, 2021

It causes an error message like

ActiveRecord::RecordNotFound (Couldn't find User with 'id'=1):
lib/login_system.rb:148:in `get_current_user'
lib/login_system.rb:105:in `login_required'
lib/login_system.rb:86:in `login_or_feed_token_required'

This seems to be caused by the browser returning a login cookie, which causes Tracks to think the user is already logged in but failing to find a matching user.

@ZeiP ZeiP added the bug 🐛 Problems with the code that result in unexpected or bad behavior label Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Problems with the code that result in unexpected or bad behavior
Projects
None yet
Development

No branches or pull requests

1 participant