summaryrefslogtreecommitdiffstats
path: root/module/plugins/Account.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-21 18:25:28 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-21 18:25:28 +0200
commit79b384b66a63b5270ddfefe41b4fbf3cc4d5ecf2 (patch)
tree6da2c0a0d196ced98c160ad540c633e8db53f385 /module/plugins/Account.py
parentcatch error in debug report (diff)
downloadpyload-79b384b66a63b5270ddfefe41b4fbf3cc4d5ecf2.tar.xz
improved account relogin
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r--module/plugins/Account.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index 86d4b8335..eac7d2a87 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -68,10 +68,12 @@ class Account():
pass
def _login(self, user, data):
+ # set timestamp for login
+ self.timestamps[user] = time()
+
req = self.getAccountRequest(user)
try:
self.login(user, data, req)
- self.timestamps[user] = time()
except WrongPassword:
self.logWarning(
_("Could not login with account %(user)s | %(msg)s") % {"user": user