diff options
Diffstat (limited to 'opnfv_testapi/ui/auth')
-rw-r--r-- | opnfv_testapi/ui/auth/sign.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/opnfv_testapi/ui/auth/sign.py b/opnfv_testapi/ui/auth/sign.py index 6a9092a..9652364 100644 --- a/opnfv_testapi/ui/auth/sign.py +++ b/opnfv_testapi/ui/auth/sign.py @@ -314,5 +314,8 @@ class LoginHandler(base.BaseHandler): response_text = response.content if "unrecognized username or password" in response_text: raises.Unauthorized(message.invalid_credentials()) + # generate random token + token = base.get_token() + self.set_secure_cookie("token", token) resp = {'status': 'success'} self.finish_request(resp) |