Skip to content

Commit

Permalink
Remove disabled users check in admin_token_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
shu zOMG chen authored and bdzim committed Oct 9, 2014
1 parent a246885 commit e2f20e0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions netkes/account_mgr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2f20e0

Please sign in to comment.