Commit 0012a8f6 authored by Valentin Samir's avatar Valentin Samir

[logout] Clean sessions variables (actually logout) before sending SLO requests

Otherwise some backend may logout before we are actually logged out from the CAS
parent 50781dba
......@@ -75,11 +75,10 @@ class LogoutMixin(object):
username=self.request.session.get("username"),
session_key=self.request.session.session_key
)
self.clean_session_variables()
user.logout(self.request)
user.delete()
except models.User.DoesNotExist:
pass
finally:
self.clean_session_variables()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment