No need for a method for generating the verification key as a method

on the class, can just do that in the view
This commit is contained in:
Christopher Allan Webber
2011-06-02 09:02:13 -05:00
parent e0f8487005
commit a77d952aa6
2 changed files with 4 additions and 10 deletions

View File

@@ -64,14 +64,6 @@ class User(Document):
return auth_lib.bcrypt_check_password(
password, self['pw_hash'])
def generate_new_verification_key(self):
"""
Create a new verification key, overwriting the old one.
"""
self['verification_key'] = unicode(uuid.uuid4())
self.save(validate=False)
class MediaEntry(Document):
__collection__ = 'media_entries'