From 3c6815fa6ef6f4c35c77768187c1af5971094016 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 17 May 2021 09:54:08 +0200 Subject: [PATCH] logout on GET (there is no security risk here, we trust our users in this) --- eva/settings_development.py | 2 ++ eva/settings_production.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/eva/settings_development.py b/eva/settings_development.py index 451a343..5791715 100644 --- a/eva/settings_development.py +++ b/eva/settings_development.py @@ -154,3 +154,5 @@ SITE_ID = 1 ACCOUNT_EMAIL_VERIFICATION = 'none' LOGIN_REDIRECT_URL = 'home' + +ACCOUNT_LOGOUT_ON_GET = True diff --git a/eva/settings_production.py b/eva/settings_production.py index c0c1a42..6eb0e86 100644 --- a/eva/settings_production.py +++ b/eva/settings_production.py @@ -173,4 +173,6 @@ SITE_ID = 1 ACCOUNT_EMAIL_VERIFICATION = 'none' +ACCOUNT_LOGOUT_ON_GET = True + LOGIN_REDIRECT_URL = 'home'