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:
parent
12214b8cb5
commit
4b71bbca3a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue