Fixes #1723.
This commit is contained in:
parent
cd3af403a7
commit
4fdcac0f6c
2 changed files with 6 additions and 44 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue