summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar stickell <l.stickell@yahoo.it> 2014-07-13 20:33:56 +0200
committerGravatar stickell <l.stickell@yahoo.it> 2014-07-13 20:33:56 +0200
commit3d72f731858776cd2216cfa8638a305b5d3027f8 (patch)
treef2ba36f23b13192dc413ccb9c75f5021e5545ac5 /module
parentMove captcha to ocr (diff)
downloadpyload-3d72f731858776cd2216cfa8638a305b5d3027f8.tar.xz
[Account] fixed bug introduced in fb24e9697b4947e805d55e1c84bc6c4e301362f7
Diffstat (limited to 'module')
-rw-r--r--module/plugins/Account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index 847a686ec..abeafad3a 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -287,7 +287,7 @@ class Account(Base):
def checkLogin(self, user):
""" checks if user is still logged in """
if user in self.timestamps:
- if self.login_timeout > 0 and self.timestamps[user] + self.login_timeout * 60 > time():
+ if self.login_timeout > 0 and self.timestamps[user] + self.login_timeout * 60 < time():
self.logDebug("Reached login timeout for %s" % user)
return self.relogin(user)
else: