aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv_testapi/ui/auth/sign.py
diff options
context:
space:
mode:
Diffstat (limited to 'opnfv_testapi/ui/auth/sign.py')
-rw-r--r--opnfv_testapi/ui/auth/sign.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/opnfv_testapi/ui/auth/sign.py b/opnfv_testapi/ui/auth/sign.py
index 6b70d1a..fe10260 100644
--- a/opnfv_testapi/ui/auth/sign.py
+++ b/opnfv_testapi/ui/auth/sign.py
@@ -325,7 +325,8 @@ class LoginHandler(base.BaseHandler):
class LogoutHandler(base.BaseHandler):
def post(self):
- token=self.get_secure_cookie('token')
+ mc = memcache.Client(['127.0.0.1:11211'], debug=0)
+ token = mc.get("token")
input_token = self.request.headers._dict['Token']
if not input_token or not input_token == token :
raises.Unauthorized(message.invalid_token())