From dfda9a0e6d30019c72bba270d290afece786a913 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 24 Dec 2010 18:57:36 +0530 Subject: [PATCH] 4 char reset token --- pandora/user/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/user/views.py b/pandora/user/views.py index 2d740eb3..c7921919 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -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()