NOT a voter..
This commit is contained in:
2
abot.py
2
abot.py
@@ -88,7 +88,7 @@ def save_vote():
|
|||||||
if is_expired(form):
|
if is_expired(form):
|
||||||
return render_template('blank.html', message = "Voting has closed")
|
return render_template('blank.html', message = "Voting has closed")
|
||||||
if is_closed_vote(form):
|
if is_closed_vote(form):
|
||||||
if is_voter(key, token):
|
if not is_voter(key, token):
|
||||||
return render_template('blank.html', message = "Token invalid")
|
return render_template('blank.html', message = "Token invalid")
|
||||||
if has_voted(key, token):
|
if has_voted(key, token):
|
||||||
return render_template('blank.html', message = "Token already used")
|
return render_template('blank.html', message = "Token already used")
|
||||||
|
|||||||
Reference in New Issue
Block a user