This commit is contained in:
Thomas NOËL 2013-09-25 10:51:29 +02:00
parent 135545de8b
commit e1a8e40b91
1 changed files with 1 additions and 7 deletions

View File

@ -42,12 +42,6 @@ class Homepage(TemplateView):
profile.user = self.request.user
reset_layout = True
# dirty hack... saml-men will fix that
try:
idp = 'entityID=' + profile.user.libertyfederation_set.all()[0].idp.liberty_provider.entity_id
except:
idp = ''
if reset_layout:
profile.set_layout({
'app001': ('welcome', {'row': 1, 'col': 1,
@ -77,7 +71,7 @@ class Homepage(TemplateView):
'label': u'RP',
'picto': u'reseaupro',
'background_color': '#008ba5',
'url': 'https://reseaupro.univcloud.fr/Shibboleth.sso/Login?%s' % idp}),
'url': 'http://reseaupro.univ-paris1.fr/CAS.php'}),
})
profile.save()