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

fixed casting bug for IACR casting

parent 2efffe0d
Branches
Tags
No related merge requests found
Subproject commit 2005360e877a2e6a7e2d4580d9afcc981015ff04
Subproject commit e2524f89f8f338e1ca511006ddb15e9794d84611
......@@ -34,6 +34,12 @@
{% block header %}
{% endblock %}
</div>
{% if admin_p %}
<div style="float:right; border-left: 1px dashed black; padding: 0px 20px 5px 20px;">
<h3>Administration</h3>
{% block admin %}{% endblock %}
</div>
{% endif %}
{% block content %}{% endblock %}
<div id="footer">
<br /><br />
......
{% extends 'iacr/templates/base.html' %}
{% block content %}
<h2 class="title">Election {{election.name}} Already Tallied</h2>
<p>
This election has already been tallied (or at least the tally has begun), so you can no longer cast a vote.
</p>
<p>
<a href="{% url helios.views.one_election_view election_id=election.uuid %}">view the election</a>
</p>
{% endblock %}
\ No newline at end of file
......@@ -58,6 +58,10 @@ def cast_confirm(request):
if not election.frozen_at or election.result:
return HttpResponse("election is not ready or already done")
# tallied election, no vote casting
if election.encrypted_tally or election.result:
return render_template(request, 'election_tallied', {'election': election})
encrypted_vote = request.session['encrypted_vote']
vote_fingerprint = cryptoutils.hash_b64(encrypted_vote)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment