From 780bdf541ad7230347f2197651c616c217b1ed95 Mon Sep 17 00:00:00 2001 From: ming416 Date: Fri, 22 Mar 2019 16:56:10 +0800 Subject: [PATCH] mgr/dashboard: auth ttl expired error Fixes: https://tracker.ceph.com/issues/38428 Signed-off-by: ming416 --- src/pybind/mgr/dashboard/services/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/services/auth.py b/src/pybind/mgr/dashboard/services/auth.py index e86f57b919311..be5967394d1e9 100644 --- a/src/pybind/mgr/dashboard/services/auth.py +++ b/src/pybind/mgr/dashboard/services/auth.py @@ -43,7 +43,7 @@ class JwtManager(object): cls.init() ttl = mgr.get_module_option('jwt_token_ttl', cls.JWT_TOKEN_TTL) ttl = int(ttl) - now = int(time.mktime(time.gmtime())) + now = int(time.time()) payload = { 'iss': 'ceph-dashboard', 'jti': str(uuid.uuid4()), -- 2.39.5