mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 10:53:31 +00:00
pep8
This commit is contained in:
1 parent
3ee7d7dc7f
commit
b58d10a875
1 file changed
+2
-1
@@ -493,7 +493,8 @@ class AuthHandler(BaseHandler):
|
||||
last_used = 0
|
||||
if 'last_used' in sess:
|
||||
last_used = sess['last_used']
|
||||
if last_used < self.hs.get_clock().time_msec() - AuthHandler.SESSION_EXPIRE_MS:
|
||||
now = self.hs.get_clock().time_msec()
|
||||
if last_used < now - AuthHandler.SESSION_EXPIRE_MS:
|
||||
del self.sessions[sid]
|
||||
|
||||
def hash(self, password):
|
||||
|
||||
Reference in new issue
Block a user