summaryrefslogtreecommitdiffstats
path: root/virtualenv/pffedportal
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2012-06-27 15:52:29 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2012-06-27 15:52:29 (GMT)
commit72e32bdb2f7a1c87554d8c9f117ccdedbd8362ef (patch)
tree494c1bebb9a7edc2806d93727d9a956a082cee93 /virtualenv/pffedportal
parentd152ee8025dd1fba71522b4ac0c00c0eada7b52e (diff)
downloadunivnautes-old-72e32bdb2f7a1c87554d8c9f117ccdedbd8362ef.zip
univnautes-old-72e32bdb2f7a1c87554d8c9f117ccdedbd8362ef.tar.gz
univnautes-old-72e32bdb2f7a1c87554d8c9f117ccdedbd8362ef.tar.bz2
wayf: (first step) send prefered_idp to templates
Diffstat (limited to 'virtualenv/pffedportal')
-rw-r--r--virtualenv/pffedportal/base/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/virtualenv/pffedportal/base/views.py b/virtualenv/pffedportal/base/views.py
index d28ada7..4815282 100644
--- a/virtualenv/pffedportal/base/views.py
+++ b/virtualenv/pffedportal/base/views.py
@@ -62,7 +62,9 @@ def index(request):
'redirect_delay': settings.REDIRECT_DELAY,
'display_name': display_name,
'pfsenseid': pfsenseid,
- 'pfsense_session': pfsense_session},
+ 'pfsense_session': pfsense_session,
+ 'prefered_idp': request.session.get('prefered_idp', ''),
+ },
context_instance=RequestContext(request))
# store prefered_idp in a cookie with a ten days ttl
if 'prefered_idp' in request.session: