summaryrefslogtreecommitdiff
path: root/django/conf
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-03-31 20:16:09 -0400
committerTim Graham <timograham@gmail.com>2014-04-05 12:50:51 -0400
commitfd23c06023a0585ee743c0752dc94da66694cf63 (patch)
treed5aead631b7e7dd4d813326cc6d6d660cf5e8dc5 /django/conf
parent9494f29d4fffc30e6ae111a995ca1d07a0cbf439 (diff)
Fixed #21649 -- Added optional invalidation of sessions when user password changes.
Thanks Paul McMillan, Aymeric Augustin, and Erik Romijn for reviews.
Diffstat (limited to 'django/conf')
-rw-r--r--django/conf/project_template/project_name/settings.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/conf/project_template/project_name/settings.py b/django/conf/project_template/project_name/settings.py
index efe8091e81..49982995b8 100644
--- a/django/conf/project_template/project_name/settings.py
+++ b/django/conf/project_template/project_name/settings.py
@@ -43,6 +43,7 @@ MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)