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

Reload user object after BEFORE_LOGIN/CREATE_USER hooks are run #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alxbridge
Copy link

If a user's is_active status is changed in the configured BEFORE_LOGIN or CREATE_USER functions, this change isn't seen when checking is_active to log the user in, so they can be incorrectly granted/denied access based on the stale value. This PR fixes this by reloading the user object before the check.

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.

None yet

1 participant