4 char reset token
This commit is contained in:
parent
d2c760a9a6
commit
dfda9a0e6d
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ def requestToken(request):
|
|||
user = q[0]
|
||||
if user:
|
||||
while True:
|
||||
token = ox.to32(random.randint(0, 1000000000))
|
||||
token = ox.to32(random.randint(32768, 1048575))
|
||||
if models.UserProfile.objects.filter(reset_token=token).count() == 0:
|
||||
break
|
||||
user_profile = user.get_profile()
|
||||
|
|
Loading…
Reference in a new issue