This commit is contained in:
parent
135545de8b
commit
e1a8e40b91
|
@ -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()
|
||||
|
||||
|
|
Reference in New Issue