From e2f20e09afb631b57a3a650180472e78bfc4f53f Mon Sep 17 00:00:00 2001 From: shu zOMG chen Date: Wed, 24 Sep 2014 17:24:43 +0000 Subject: [PATCH] Remove disabled users check in admin_token_auth --- netkes/account_mgr/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/netkes/account_mgr/__init__.py b/netkes/account_mgr/__init__.py index 2807ba7..ffa1875 100644 --- a/netkes/account_mgr/__init__.py +++ b/netkes/account_mgr/__init__.py @@ -58,8 +58,6 @@ def admin_token_auth(config, user, username, password): log = logging.getLogger("admin_token_auth") api = get_api(config) user_token = dict(avatar_id=user['avatar_id'], token=password) - if not user['enabled']: - return False with get_cursor(config) as cur: cur.execute(SELECT_ADMIN_TOKEN, user_token)