mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 14:20:23 +00:00
time_msec()
This commit is contained in:
parent
3176aebf9d
commit
3ee7d7dc7f
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ class AuthHandler(BaseHandler):
|
||||||
last_used = 0
|
last_used = 0
|
||||||
if 'last_used' in sess:
|
if 'last_used' in sess:
|
||||||
last_used = sess['last_used']
|
last_used = sess['last_used']
|
||||||
if last_used < self.hs.get_clock().time() - AuthHandler.SESSION_EXPIRE_MS:
|
if last_used < self.hs.get_clock().time_msec() - AuthHandler.SESSION_EXPIRE_MS:
|
||||||
del self.sessions[sid]
|
del self.sessions[sid]
|
||||||
|
|
||||||
def hash(self, password):
|
def hash(self, password):
|
||||||
|
|
Loading…
Reference in a new issue