summaryrefslogtreecommitdiffstats
path: root/module/plugins/Account.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 11:47:23 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 11:47:23 +0200
commit46bac1946a3d3f8346517e9a42da457646074c44 (patch)
tree2b572a2af0852bbb03c2cd372457772d8ee5a3ae /module/plugins/Account.py
parentrenaming fix, get job by priority (diff)
downloadpyload-46bac1946a3d3f8346517e9a42da457646074c44.tar.xz
account fixes
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r--module/plugins/Account.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index de5fb00d6..bdbbd4c1c 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -43,8 +43,13 @@ class Account():
for user, data in self.accounts:
self.login(user, data)
- def updateAccounts(self, user, password):
- self.accounts[user]["password"] if self.accounts.has_key(user) else self.accounts[user] = {"password":password}
+ def updateAccounts(self, user, password, options):
+ if self.accounts.has_key(user):
+ self.accounts[user]["password"] = password
+ self.accounts[user]["options"] = options
+ else:
+ self.accounts[user] = {"password" : password, "options": options}
+
self.login(user, self.accounts[user])
def removeAccount(self, user):
@@ -54,6 +59,8 @@ class Account():
return {
"validuntil": None,
"login": name,
+ "password": self.accounts[name]["password"],
+ "options": self.accounts[name]["options"],
"trafficleft": None,
"type": self.__name__
}