views: in sso_failure() the call to self.get_id() could never work, replace by utils.get_idp()

In SSO response treatment we do not know anymore the requested IdP from the query string
we must look in the LassoLogin object.

fixes #7271
This commit is contained in:
Benjamin Dauvergne 2015-05-18 14:46:16 +02:00
parent 12214b8cb5
commit 4b71bbca3a
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class LoginView(LogMixin, View):
def sso_failure(self, request, login, idp_message, status_codes):
'''show error message to user after a login failure'''
idp = self.get_idp(request)
idp = utils.get_idp(login.remoteProviderId)
error_url = utils.get_setting(idp, 'ERROR_URL')
error_redirect_after_timeout = utils.get_setting(idp, 'ERROR_REDIRECT_AFTER_TIMEOUT')
if error_url: