diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2018-04-10 01:41:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-04-10 01:41:38 +0000 |
commit | 509cfc803f0566c28f0e415585d9967baf1f09b7 (patch) | |
tree | 42b8fa78f628e3b1c854562c53682858e6f15f84 /testapi/opnfv_testapi | |
parent | 62d874a5777f47aacd8a2ac7116b7a1f8316ac25 (diff) | |
parent | 417365fa2555418665d41224421e99c153b15c7b (diff) |
Merge "Add expires days for cookies"
Diffstat (limited to 'testapi/opnfv_testapi')
-rw-r--r-- | testapi/opnfv_testapi/handlers/sign_handlers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testapi/opnfv_testapi/handlers/sign_handlers.py b/testapi/opnfv_testapi/handlers/sign_handlers.py index 7540662..2039971 100644 --- a/testapi/opnfv_testapi/handlers/sign_handlers.py +++ b/testapi/opnfv_testapi/handlers/sign_handlers.py @@ -46,7 +46,7 @@ class SigninReturnHandler(SignBaseHandler): dbapi.db_update(self.table, q_user, login_user) self.clear_cookie(constants.TESTAPI_ID) - self.set_secure_cookie(constants.TESTAPI_ID, user) + self.set_secure_cookie(constants.TESTAPI_ID, user, 1) self.redirect(url=CONF.ui_url) |