8 chars should be enough

This commit is contained in:
2019-10-31 15:35:27 +02:00
parent b8bffcc587
commit 6fba1e3240

View File

@@ -71,7 +71,7 @@ def random_token():
def random_expiring_hash():
codes = []
for i in range(3):
for i in range(2):
codes.append("".join([random.choice(string.ascii_letters + string.digits) for n in range(4)]))
ehash = "-".join(codes)
return ehash