switch to base26 ids

This commit is contained in:
j 2011-10-01 00:28:35 +02:00
commit bc118c67ee
9 changed files with 36 additions and 23 deletions

View file

@ -274,7 +274,7 @@ def requestToken(request):
user = None
if user:
while True:
token = ox.to32(random.randint(32768, 1048575))
token = ox.to26(random.randint(32768, 1048575))
if models.UserProfile.objects.filter(reset_token=token).count() == 0:
break
user_profile = user.get_profile()