RTFM
This commit is contained in:
parent
3dd3c028e1
commit
f1494e3382
|
@ -103,7 +103,7 @@ class Message(models.Model):
|
|||
|
||||
|
||||
def gen_token():
|
||||
return secrets.token_urlsafe(20)
|
||||
return secrets.token_urlsafe(15) # returns 15 bytes Base64-encoded (times 1.333...) = 20 characters
|
||||
|
||||
|
||||
class LoginToken(models.Model):
|
||||
|
|
Loading…
Reference in New Issue