summaryrefslogtreecommitdiffstats
path: root/larpe/trunk/larpe/site_authentication.ptl
diff options
context:
space:
mode:
Diffstat (limited to 'larpe/trunk/larpe/site_authentication.ptl')
-rw-r--r--larpe/trunk/larpe/site_authentication.ptl8
1 files changed, 4 insertions, 4 deletions
diff --git a/larpe/trunk/larpe/site_authentication.ptl b/larpe/trunk/larpe/site_authentication.ptl
index 68f54aa..49cb8ee 100644
--- a/larpe/trunk/larpe/site_authentication.ptl
+++ b/larpe/trunk/larpe/site_authentication.ptl
@@ -290,15 +290,15 @@ class SiteAuthentication:
return success, return_content
- def local_logout(self, federation=None, user=None):
- if federation is None and user is not None:
+ def local_logout(self, federation=None, user=None, cookies=None):
+ if cookies is None and federation is None and user is not None:
federations = Federation.select(lambda x: user.name_identifiers[0] in x.name_identifiers)
if federations:
- federation = federations[0]
+ cookies = federations[0].cookies
# Logout request to the site
url = self.host.logout_url
- if url is not None and federation is not None and federation.cookies is not None:
+ if url is not None and cookies is not None:
try:
http_get_page(url, {'Cookie': federation.cookies})
except: