diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-09-26 08:21:54 +0530 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2020-10-19 22:19:56 +0530 |
commit | 702da130d2522d6b0603d6dfb87a1914760cf94d (patch) | |
tree | 7f39d9c9ab5f19366a07dc20e93cd5bc93c668ca /opnfv_testapi | |
parent | 590742dfe7dde1975c4bd6074b715fc9f4cc7d11 (diff) |
updated login api url mapping and validation
Issue-ID: DOVETAIL-801
Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
Change-Id: I97e36ec01e1975c6edd61c8b6215f60573d29254
Diffstat (limited to 'opnfv_testapi')
-rw-r--r-- | opnfv_testapi/common/message.py | 4 | ||||
-rw-r--r-- | opnfv_testapi/router/url_mappings.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opnfv_testapi/common/message.py b/opnfv_testapi/common/message.py index 0f50cd1..ae36e4d 100644 --- a/opnfv_testapi/common/message.py +++ b/opnfv_testapi/common/message.py @@ -58,6 +58,10 @@ def no_auth(): return 'No permission to operate. Please ask Administrator for details.' +def invalid_credentials(): + return 'Invalid UserName or Password' + + def req_username(): return 'UserName is Required' diff --git a/opnfv_testapi/router/url_mappings.py b/opnfv_testapi/router/url_mappings.py index 49c6004..b9e8dd9 100644 --- a/opnfv_testapi/router/url_mappings.py +++ b/opnfv_testapi/router/url_mappings.py @@ -57,7 +57,7 @@ mappings = [ (r'/api/v1/auth/signout', sign.SignoutHandler), (r'/api/v1/profile', user.ProfileHandler), (r'/api/v1/reviews', review_handlers.ReviewsCLHandler), - ('/api/v1/login', sign.LoginHandler), + (r'/api/v1/login', sign.LoginHandler), (r'/api/v1/logout', sign.LogoutHandler) ] |