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

Fix duplicate signals in login_user and logout_user functions. #702

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

Conversation

wcipriano
Copy link

When setting "CREATE_SESSION_ON_LOGIN" is on, the signal "user_logged_in" is being sent duplicate, because function login (called in the line 19) already send this signal (/django/contrib/auth/init.py line 125).

We have the same situation for logout, function logout (called in the line 29) already send the user_logged_out signal.

wcipriano and others added 2 commits November 12, 2022 15:08
When setting "CREATE_SESSION_ON_LOGIN" is on, the signal "user_logged_in" is being sent duplicate, because function login (called in the line 19) already send this signal (/django/contrib/auth/__init__.py line 125).

We have the same situation for logout, function logout (called in the line 29) already send the user_logged_out signal.
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.

2 participants