Change vote status of voter if voter voted

Through that voters can only vote once
This commit is contained in:
2020-11-28 00:17:16 +01:00
parent 7b4f460445
commit 81befda3a9
3 changed files with 11 additions and 1 deletions

View File

@@ -54,6 +54,7 @@
</div>
<form action="#" th:action="@{/processVote}" method="post">
<input id="voteValues" type="hidden" name="voteValues" value="" />
<input id="voterName" type="hidden" name="voterEmail" th:value="${name}" />
<button type="submit" id="submitButton" onclick="getVotes()">Auswahl bestätigen</button>
</form>