Skip to content
Snippets Groups Projects
Commit 143f795a authored by Ben Adida's avatar Ben Adida
Browse files

fixed logout process

parent e8f18fcd
No related branches found
No related tags found
No related merge requests found
{% if default_auth_system %}
<p><a href="{% url auth.views.start system_name=default_auth_system %}?return_url={{return_url}}">
{{default_auth_system_obj.LOGIN_MESSAGE}}
</a></p>
<p><a style="font-size:1.3em; border: 1px solid #bbb; padding: 5px;" href="{% url auth.views.start system_name=default_auth_system %}?return_url={{return_url}}">{{default_auth_system_obj.LOGIN_MESSAGE}}</a></p>
{% else %}
{% for auth_system in enabled_auth_systems %}
{% ifequal auth_system "password" %}
......
......@@ -551,11 +551,13 @@ def one_election_cast_done(request, election):
# local logout ensures that there's no more
# user locally
if logout:
auth_views.do_local_logout(request)
# WHY DO WE COMMENT THIS OUT? because we want to force a full logout via the iframe, including
# from remote systems, just in case, i.e. CAS
# if logout:
# auth_views.do_local_logout(request)
# remote logout is happening asynchronously in an iframe to be modular given the logout mechanism
return render_template(request, 'cast_done', {'election': election, 'last_vote': votes[0], 'logout': logout})
return render_template(request, 'cast_done', {'election': election, 'last_vote': votes[0], 'logout': logout}, include_user=False)
@election_view()
@json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment