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

User data created in session at login-time #45

Open
xsawyerx opened this issue Oct 30, 2015 · 1 comment
Open

User data created in session at login-time #45

xsawyerx opened this issue Oct 30, 2015 · 1 comment

Comments

@xsawyerx
Copy link
Contributor

When logging in, we generate session data for the user. If an administrator changes anything in the user data while the user is logged in, this doesn't get recalculated. The user will have to log out and log in again in order to see what changed.

Instead, only the user ID should be stored, and the user data should be fetched at a before hook. This allows the data to be fresh whenever a route needs to check it or render a template that needs to check it.

Another solution is have every call that changes that data to refresh it, but that's much more work with no gain really.

I tried doing this but had some problems which means I might need to solve #44 first.

@xsawyerx
Copy link
Contributor Author

This is resolved in my fork.

andrewalker pushed a commit to andrewalker/PearlBee that referenced this issue Nov 18, 2017
more button for user and category - BLOGSPERL-211
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

No branches or pull requests

1 participant