Changed the method used to generate uuids for verification_key, this one works, thanks paroneayea

Signed-off-by: Joar Wandborg <git@wandborg.com>
This commit is contained in:
Joar Wandborg 2011-05-07 02:30:35 +02:00
parent 85e1bc316e
commit b16ebe0e13

View File

@ -50,7 +50,7 @@ class User(Document):
'created': datetime.datetime.utcnow,
'email_verified': False,
'status': u'needs_email_verification',
'verification_key': uuid.uuid4 }
'verification_key': lambda: unicode( uuid.uuid4() ) }
def check_login(self, password):
"""