diff options
author | mkaay <mkaay@mkaay.de> | 2010-08-12 00:51:10 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-08-12 00:51:10 +0200 |
commit | bc12e7c71cc93bcc22f80dba15111091b4528e03 (patch) | |
tree | 96b5204ec3ba1c2db53ca809fb909f0f4518fab0 /module/plugins/accounts/ShareonlineBiz.py | |
parent | merge (diff) | |
download | pyload-bc12e7c71cc93bcc22f80dba15111091b4528e03.tar.xz |
account plugin change, server methods for accounts
Diffstat (limited to 'module/plugins/accounts/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/accounts/ShareonlineBiz.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index fa5cc362c..69a8ddc0c 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -29,11 +29,10 @@ class ShareonlineBiz(Account): #@TODO: account info - def login(self): - for user, data in self.accounts.items(): - req = self.core.requestFactory.getRequest(self.__name__, user) - post_vars = {"user": user, - "pass": data["password"], - "l_rememberme":"1"} - req.lastURL = "http://www.share-online.biz/alpha/" - req.load("https://www.share-online.biz/alpha/user/login", cookies=True, post=post_vars) + def login(self, user, data): + req = self.core.requestFactory.getRequest(self.__name__, user) + post_vars = {"user": user, + "pass": data["password"], + "l_rememberme":"1"} + req.lastURL = "http://www.share-online.biz/alpha/" + req.load("https://www.share-online.biz/alpha/user/login", cookies=True, post=post_vars) |