From 29ca1f2d2c0127e8bc05270d126b98bfa06fe58e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Fri, 25 Sep 2020 20:59:42 +0530 Subject: updated code alignment Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam Change-Id: I67213176adffdd328513556cca4298a9b2642f10 --- opnfv_testapi/resources/test_handlers.py | 2 +- opnfv_testapi/ui/auth/sign.py | 1 - 2 files changed, 1 insertion(+), 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, -- cgit 1.2.3-korg