Commit 64f3419a authored by Łukasz Nowak's avatar Łukasz Nowak

app: Stabilise the key length

parent 1d871c10
......@@ -139,7 +139,9 @@ class SQLite3Storage(local):
)
if result is not None:
raise UserExists
key = '%x' % (random.getrandbits(128),)
key = ''.join(
random.choice(
string.ascii_lowercase + string.digits) for i in range(32))
db.cursor().execute(
'INSERT INTO uploader '
'(reference, key, active) '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment