diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-02 09:02:13 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-02 09:02:13 -0500 |
commit | a77d952aa6659f0291f856495b18a43dd7e28508 (patch) | |
tree | 1ad772824b144bd1d6833e708b5ad2344c6957be /mediagoblin/db/models.py | |
parent | e0f8487005f4e9adca41648d35bb8dc6db850032 (diff) | |
download | mediagoblin-a77d952aa6659f0291f856495b18a43dd7e28508.tar.lz mediagoblin-a77d952aa6659f0291f856495b18a43dd7e28508.tar.xz mediagoblin-a77d952aa6659f0291f856495b18a43dd7e28508.zip |
No need for a method for generating the verification key as a method
on the class, can just do that in the view
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 0b85430a..3da97a49 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -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' |