not store tokens, just the hashes
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user