diff options
Diffstat (limited to 'opnfv_testapi')
-rw-r--r-- | opnfv_testapi/resources/test_handlers.py | 2 | ||||
-rw-r--r-- | opnfv_testapi/ui/auth/sign.py | 1 |
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, |