aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers/user.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-18 08:59:13 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-18 08:59:13 +0100
commit2e5a241777ef0bb0d76420d39bf3be41e16e042a (patch)
tree3223b8fba4fa244fa97b0df0b8bf8c5b91aeffec /src/web/controllers/user.py
parentCheck if the id of the category is '0'. (diff)
downloadnewspipe-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/user.py')
-rw-r--r--src/web/controllers/user.py8
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'))
bgstack15