not store tokens, just the hashes

This commit is contained in:
Ville Rantanen
2018-12-05 12:59:00 +02:00
parent a12b9e9462
commit 74cdb27037
2 changed files with 7 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ def insert_token(db, name, token):
);
""",
(
token,
get_hash(token),
name
)
)
@@ -41,8 +41,7 @@ def manage_tokens(options):
)
)
for row in cur:
print("%s/vote/%s/%s (%s)"%(
options.prefix,
print("%s:%s (%s)"%(
options.name,
row[0],
"used" if row[1] == "true" else "unused"