Commit 7474cc57 authored by Pavol Otto's avatar Pavol Otto


parent e1f6f0f1
......@@ -110,7 +110,7 @@ class MojeIDConsumer(GenericConsumer):
if response.status != SUCCESS:
return result
return response
# check if pape login method is the required one
required_auth = \
......@@ -112,7 +112,7 @@ def render_failure(request, error, template_name='openid/failure.html'):
resp = trigger_error.send(sender=__name__, error=error, request=request)
# Return first valid response
for r in resp:
if resp[1] is not None and isinstance(r[1], HttpResponse):
if r[1] is not None and isinstance(r[1], HttpResponse):
return r[1]
# No response to signal - render default page
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment