From 2e5a241777ef0bb0d76420d39bf3be41e16e042a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 18 Feb 2016 08:59:13 +0100 Subject: New management of the token for the account confirmation. --- src/web/controllers/user.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/web/controllers') 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')) -- cgit