diff --git a/templates/openwisp2/settings.py b/templates/openwisp2/settings.py index 7f7a314b..75919e58 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',