From 67e63926f929cf7b6665fba00238fec227b5831e Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Sat, 7 May 2011 00:55:32 +0200 Subject: [PATCH] Fixed bug in models.py:User that caused all users created by the same python process to have the same verification_key value Signed-off-by: Joar Wandborg --- mediagoblin/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/models.py b/mediagoblin/models.py index 62cab4a5..c361feac 100644 --- a/mediagoblin/models.py +++ b/mediagoblin/models.py @@ -50,7 +50,7 @@ class User(Document): 'created': datetime.datetime.utcnow, 'email_verified': False, 'status': u'needs_email_verification', - 'verification_key': unicode( uuid.uuid4() ) } + 'verification_key': uuid.uuid4 } def check_login(self, password): """