From bc12e7c71cc93bcc22f80dba15111091b4528e03 Mon Sep 17 00:00:00 2001 From: mkaay Date: Thu, 12 Aug 2010 00:51:10 +0200 Subject: account plugin change, server methods for accounts --- module/plugins/accounts/ShareonlineBiz.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'module/plugins/accounts/ShareonlineBiz.py') 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) -- cgit v1.2.3