From: Ricardo Dias Date: Tue, 16 Apr 2019 08:38:31 +0000 (+0100) Subject: mgr/dashboard: auth: fix user lastUpdate timestamp generation X-Git-Tag: v14.2.2~199^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=656da75bf5a6f7704e276a80594a4ea3a606c6bd;p=ceph.git mgr/dashboard: auth: fix user lastUpdate timestamp generation Fixes: http://tracker.ceph.com/issues/39300 Signed-off-by: Ricardo Dias (cherry picked from commit 90f6142d6f9ecd712c6c1e7a801a87c346e17855) --- diff --git a/src/pybind/mgr/dashboard/services/access_control.py b/src/pybind/mgr/dashboard/services/access_control.py index 3d9f38161e21..4d1669b6afb0 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)