From: Kanagaraj Manickam Date: Fri, 25 Sep 2020 15:29:42 +0000 (+0530) Subject: updated code alignment X-Git-Tag: opnfv-10.0.0~6 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F89%2F71289%2F4;p=dovetail-webportal.git updated code alignment Issue-ID: DOVETAIL-801 Signed-off-by: Kanagaraj Manickam Change-Id: I67213176adffdd328513556cca4298a9b2642f10 --- 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,