Skip to content

Commit

Permalink
Minor build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ungurandrei committed Feb 24, 2019
1 parent 09197ad commit 45bcb7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
def validate_authentication(content, user=None, admin=False):
if 'auth' not in content:
return False
headers = {'content-type': 'application/json', 'Authorization': f'Bearer {content['auth']}'}
headers = {'content-type': 'application/json', 'Authorization': f"Bearer {content['auth']}"}
response = requests.get(f"{auth_base_url}/users/self", headers=headers)
if 'verified' not in response:
return False
Expand All @@ -37,4 +37,4 @@ def validate_authentication(content, user=None, admin=False):
if user:
return response['_id'] == user
else:
return response['verified']
return response['verified']

0 comments on commit 45bcb7c

Please sign in to comment.