diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-09-25 20:59:42 +0530 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-10-19 22:19:56 +0530 |
commit | 29ca1f2d2c0127e8bc05270d126b98bfa06fe58e (patch) | |
tree | edbaf5aa1003f43679f441ae992aaaf223da4e02 | |
parent | 104b5565fca364c687e98ff8433f04c161398217 (diff) |
updated code alignment
Issue-ID: DOVETAIL-801
Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
Change-Id: I67213176adffdd328513556cca4298a9b2642f10
-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, |