diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-18 08:59:13 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-18 08:59:13 +0100 |
commit | 2e5a241777ef0bb0d76420d39bf3be41e16e042a (patch) | |
tree | 3223b8fba4fa244fa97b0df0b8bf8c5b91aeffec /src/web/controllers | |
parent | Check if the id of the category is '0'. (diff) | |
download | newspipe-2e5a241777ef0bb0d76420d39bf3be41e16e042a.tar.gz newspipe-2e5a241777ef0bb0d76420d39bf3be41e16e042a.tar.bz2 newspipe-2e5a241777ef0bb0d76420d39bf3be41e16e042a.zip |
New management of the token for the account confirmation.
Diffstat (limited to 'src/web/controllers')
-rw-r--r-- | src/web/controllers/user.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/web/controllers/user.py b/src/web/controllers/user.py index d8bf1fa1..ae169b05 100644 --- a/src/web/controllers/user.py +++ b/src/web/controllers/user.py @@ -9,14 +9,6 @@ class UserController(AbstractController): _db_cls = User _user_id_key = 'id' - def unset_activation_key(self, obj_id): - self.update({'id': obj_id}, {'activation_key': ""}) - - def set_activation_key(self, obj_id): - key = str(random.getrandbits(256)).encode("utf-8") - key = hashlib.sha512(key).hexdigest()[:86] - self.update({'id': obj_id}, {'activation_key': key}) - def _handle_password(self, attrs): if attrs.get('password'): attrs['pwdhash'] = generate_password_hash(attrs.pop('password')) |