shareable upload tokens
This commit is contained in:
@@ -6,8 +6,8 @@ import passlib.hash
|
||||
VALID_TOKEN_CHARS = string.digits + string.ascii_letters
|
||||
|
||||
|
||||
def random_token():
|
||||
return "".join(secrets.choice(VALID_TOKEN_CHARS) for i in range(8))
|
||||
def random_token(n=8):
|
||||
return "".join(secrets.choice(VALID_TOKEN_CHARS) for i in range(n))
|
||||
|
||||
|
||||
def file_date_human(num):
|
||||
|
||||
Reference in New Issue
Block a user