From b0bdf72310be8959c17cbce31cb859d651c5fa2c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 8 Jul 2019 22:24:18 -0400 Subject: [PATCH] Fix bad variable name --- client-api/pvc-api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index 3427088f..46a2c2f3 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -83,7 +83,7 @@ def authenticator(function): return function(*args, **kwargs) # Direct token-based authentication if 'token' in flask.request.values: - if any(found_token for token in config['auth_tokens'] if flask.request.values['token'] == token['token']): + if any(token for token in config['auth_tokens'] if flask.request.values['token'] == token['token']): return function(*args, **kwargs) else: return flask.jsonify({"message":"Authentication failed"}), 401