diff options
Diffstat (limited to 'opnfv_testapi/ui/auth/sign.py')
-rw-r--r-- | opnfv_testapi/ui/auth/sign.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/opnfv_testapi/ui/auth/sign.py b/opnfv_testapi/ui/auth/sign.py index 0667227..f245c4b 100644 --- a/opnfv_testapi/ui/auth/sign.py +++ b/opnfv_testapi/ui/auth/sign.py @@ -322,3 +322,9 @@ class LoginHandler(base.BaseHandler): mc.set("token", token) self.set_header("token", token) self.finish_request(response) + +class LogoutHandler(base.BaseHandler): + def post(self): + input_token = self.request.headers._dict['Token'] + resp = {'Message': 'You have been logged out successfully.'} + self.finish_request(resp) |