session expiry message shows up when not logged in #5197
Labels
Hacktoberfest
Issues suitable for the annual Hacktoberfest organized by Digital Ocean
help wanted
Issues we would definitely appreciate volunteer help with
priority/low
Description
This is a low-priority issue but filing for awareness: right now our session expiration applies to all routes on the application, including when users aren't logged in. Here is the relevant code.
Steps to Reproduce
SESSION_EXPIRATION_MINUTES
).Expected Behavior
Nothing happens, page reloads.
Actual Behavior
You'll get a flashed message indicating you have been logged out. This is odd for the user since they're not logged in.
Comments
A proposal is to only use the session expiration logic when
logged_in
is in the session object.The text was updated successfully, but these errors were encountered: