]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: auth ttl expired error 27219/head
authorming416 <geenature@163.com>
Fri, 22 Mar 2019 08:56:10 +0000 (16:56 +0800)
committerLenz Grimmer <lgrimmer@suse.com>
Tue, 26 Mar 2019 15:04:34 +0000 (16:04 +0100)
Fixes: https://tracker.ceph.com/issues/38428
Signed-off-by: ming416 <geenature@163.com>
(cherry picked from commit 780bdf541ad7230347f2197651c616c217b1ed95)

src/pybind/mgr/dashboard/services/auth.py

index e86f57b9193118fc976752a173bc567badc60e8b..be5967394d1e946a1a5864f4852f6a4770479eb2 100644 (file)
@@ -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()),