Fix remember-me being silently broken by unrelated logins #6204
No reviewers
Labels
No labels
Focus: A11y
Focus: Admin/Meta
Focus: Authentication
Focus: Back-End
Focus: Database
Focus: Design & UX
Focus: Editor - Markdown
Focus: Editor - WYSIWYG
Focus: Export System
Focus: Front-End
Focus: Translations
Focus: View Customization
Is: Docs Update
Is: Enhancement
Is: Priority
Is: Security
Is: Upstream
Status
Blocked
Status
Open to discussion
Status
Out of scope
Status
Pending Validation
Type
API Request
Type
Bug Report
Type
Feature Request
Type
Happy feedback
Type
Maintenance
Type
Question
Type
Support
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bookstack/bookstack!6204
Loading…
Reference in a new issue
No description provided.
Delete branch "rsertelon:fix-mfa-remember-me"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey there.
I've been using Bookstack for several months now (as a family knowledge base) and stumbled upon the Remember Me not remembering me issue #2985
Being a developer myself, but not in PHP, and having access to Claude AI, I asked it the source of the bug. It found what seems to be the issue.
I'm not sure which policy this project has with AI usage, in any case, I've reviewed the code, and tried to make it as readable and close to guidelines as possible.
Hopefully this helps, tell me if I shouldn't have done that, or if the quality is too low, my goal isn't to take your valuable review time with a bad pull request :)
Thanks,
cc76b69addfe91a960cfThanks for offering this @rsertelon.
Our guidelines when it comes to AI use can be found at https://www.bookstackapp.com/about/community-rules/#use-of-llmsai
Regardless though, from a quick look at the code changes, I don't think this would address the issue.
Fundamentally, We need to perform a more substantial revamp of the user session handling so that the remember-me is session based instead of user based, and so that we can better manage sessions overall.
For the kinds of changes needed, I'm not keen on having them provided via LLM-based PRs, or from folks without some continued experience in our codebase.
Therefore I'm going to close this off.
Hey @danb Thanks for the AI guidelines, I'm sorry I didn't find them earlier. Thanks for your answer :)
Pull request closed