From cef91139b067405bbe1860aa46132b5499e1b543 Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Wed, 21 Aug 2024 16:30:55 +0530 Subject: [PATCH 1/2] [chores] Added allauth.account.middleware.AccountMiddleware --- templates/openwisp2/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/openwisp2/settings.py b/templates/openwisp2/settings.py index 7f7a314b..e361cb4c 100644 --- a/templates/openwisp2/settings.py +++ b/templates/openwisp2/settings.py @@ -145,6 +145,7 @@ 'sesame.middleware.AuthenticationMiddleware', {% endif %} 'django.contrib.messages.middleware.MessageMiddleware', + 'allauth.account.middleware.AccountMiddleware'. 'django.middleware.clickjacking.XFrameOptionsMiddleware', {% if openwisp2_users_user_password_expiration or openwisp2_users_staff_user_password_expiration %} 'openwisp_users.middleware.PasswordExpirationMiddleware', From b6f77972681107f4909fe10d89efe8fee4fe4282 Mon Sep 17 00:00:00 2001 From: Federico Capoano Date: Fri, 23 Aug 2024 10:54:08 -0400 Subject: [PATCH 2/2] [chores] Update templates/openwisp2/settings.py --- templates/openwisp2/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/openwisp2/settings.py b/templates/openwisp2/settings.py index e361cb4c..75919e58 100644 --- a/templates/openwisp2/settings.py +++ b/templates/openwisp2/settings.py @@ -145,7 +145,7 @@ 'sesame.middleware.AuthenticationMiddleware', {% endif %} 'django.contrib.messages.middleware.MessageMiddleware', - 'allauth.account.middleware.AccountMiddleware'. + 'allauth.account.middleware.AccountMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', {% if openwisp2_users_user_password_expiration or openwisp2_users_staff_user_password_expiration %} 'openwisp_users.middleware.PasswordExpirationMiddleware',