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

Add ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE setting #913

Merged
merged 6 commits into from
Jun 3, 2015

Conversation

rodxavier
Copy link

Since Django 1.7, if the SessionAuthenticationMiddleware is enabled, the session is invalidated when the user changes the account's password.

Starting Django 2.0, session verification will become mandatory whether or not the SessionAuthenticationMiddleware is enabled.

I figured this may be a good time to add this setting.

Source: Session invalidation on password change

@@ -58,6 +58,11 @@ ACCOUNT_LOGOUT_ON_GET (=False)
mere GET request. See documentation for the `LogoutView` for
details.

ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE (=False)
Determines whether or not the user is automatically logged out after
changing the password. See documentation for `Django's session invalidation on password change`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: mind the line wrapping. It'd also help to link to Django docs on the topic.

@julen
Copy link
Contributor

julen commented Apr 13, 2015

This looks good cc @pennersr.

pennersr added a commit that referenced this pull request Jun 3, 2015
Add ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE setting
@pennersr pennersr merged commit 452a586 into pennersr:master Jun 3, 2015
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.

3 participants