This commit is contained in:
Johnny 2018-10-28 22:57:34 +00:00
parent cd3af403a7
commit 4fdcac0f6c
2 changed files with 6 additions and 44 deletions

View file

@ -15,15 +15,16 @@ class SharedLoginMiddleware(object):
# Code to be executed for each request before
# the view (and later middleware) are called.
# Synchronize credentials between webclient and website
# Must be performed *before* rendering the view (issue #1723)
self.make_shared_login(request)
# Process view
response = self.get_response(request)
# Code to be executed for each request/response after
# the view is called.
# Synchronize credentials
self.make_shared_login(request)
# Return processed view
return response