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/views/api | |
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/views/api')
-rw-r--r-- | src/web/views/api/common.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/views/api/common.py b/src/web/views/api/common.py index 3476cad9..c155a254 100644 --- a/src/web/views/api/common.py +++ b/src/web/views/api/common.py @@ -54,8 +54,7 @@ def authenticate(func): if auth is not None: user = User.query.filter( User.nickname == auth.username).first() - if user and user.check_password(auth.password) \ - and user.activation_key == "": + if user and user.check_password(auth.password) and user.enabled: g.user = user logged_in = True if logged_in: |