From 90f6142d6f9ecd712c6c1e7a801a87c346e17855 Mon Sep 17 00:00:00 2001 From: Ricardo Dias Date: Tue, 16 Apr 2019 09:38:31 +0100 Subject: [PATCH] mgr/dashboard: auth: fix user lastUpdate timestamp generation Fixes: http://tracker.ceph.com/issues/39300 Signed-off-by: Ricardo Dias --- src/pybind/mgr/dashboard/services/access_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/services/access_control.py b/src/pybind/mgr/dashboard/services/access_control.py index 3d9f38161e2..4d1669b6afb 100644 --- a/src/pybind/mgr/dashboard/services/access_control.py +++ b/src/pybind/mgr/dashboard/services/access_control.py @@ -183,7 +183,7 @@ class User(object): self.lastUpdate = lastUpdate def refreshLastUpdate(self): - self.lastUpdate = int(time.mktime(time.gmtime())) + self.lastUpdate = int(time.time()) def set_password(self, password): self.password = password_hash(password) -- 2.39.5