From 48d5273afba2888c4b8dca694e818f5913b2dd28 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 11 Dec 2015 13:29:04 +0100 Subject: [PATCH] fix infinite redirect then connected to admin panel --- cas_server/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cas_server/views.py b/cas_server/views.py index 4a317dd..4244e37 100644 --- a/cas_server/views.py +++ b/cas_server/views.py @@ -82,7 +82,8 @@ class LogoutMixin(object): user.logout(self.request) user.delete() except models.User.DoesNotExist: - pass + self.clean_session_variables() + self.request.session.flush() class LogoutView(View, LogoutMixin):