aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--opnfv_testapi/resources/test_handlers.py2
-rw-r--r--opnfv_testapi/ui/auth/sign.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/opnfv_testapi/resources/test_handlers.py b/opnfv_testapi/resources/test_handlers.py
index bded472..1dbc4cd 100644
--- a/opnfv_testapi/resources/test_handlers.py
+++ b/opnfv_testapi/resources/test_handlers.py
@@ -446,7 +446,7 @@ class TestsUploadDataHandler(GenericTestHandler):
if openid:
self.json_args['owner'] = openid
input_token = self.request.headers._dict['Token']
- if not input_token or not input_token == token:
+ if not token or not input_token == token:
raises.Unauthorized(message.invalid_token())
self._post()
diff --git a/opnfv_testapi/ui/auth/sign.py b/opnfv_testapi/ui/auth/sign.py
index 23e711b..cfa2e8d 100644
--- a/opnfv_testapi/ui/auth/sign.py
+++ b/opnfv_testapi/ui/auth/sign.py
@@ -303,7 +303,6 @@ class LoginHandler(base.BaseHandler):
raises.Unauthorized(message.req_username())
elif not password:
raises.Unauthorized(message.req_password())
-
params = {
"name": name,
"pass": password,