summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RPNetBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:34:18 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:34:18 +0200
commita95c217627a1cb651b24e69f20640df40797aff9 (patch)
tree63fcbffd55b704b461446c1724022e76373dac12 /module/plugins/accounts/RPNetBiz.py
parentAccount rewritten (diff)
downloadpyload-a95c217627a1cb651b24e69f20640df40797aff9.tar.xz
Account rewritten (2)
Diffstat (limited to 'module/plugins/accounts/RPNetBiz.py')
-rw-r--r--module/plugins/accounts/RPNetBiz.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/RPNetBiz.py b/module/plugins/accounts/RPNetBiz.py
index cd1523a92..5fd7e5878 100644
--- a/module/plugins/accounts/RPNetBiz.py
+++ b/module/plugins/accounts/RPNetBiz.py
@@ -17,7 +17,7 @@ class RPNetBiz(Account):
def parse_info(self, user, password, data, req):
#: Get account information from rpnet.biz
- res = self.get_account_status(user, req)
+ res = self.get_account_status(user, password, req)
try:
if res['accountInfo']['isPremium']:
#: Parse account info. Change the trafficleft later to support per host info.
@@ -35,17 +35,17 @@ class RPNetBiz(Account):
def login(self, user, password, data, req):
#: Get account information from rpnet.biz
- res = self.get_account_status(user, req)
+ res = self.get_account_status(user, password, req)
#: If we have an error in the res, we have wrong login information
if 'error' in res:
- self.fail()
+ self.login_fail()
- def get_account_status(self, user, req):
+ def get_account_status(self, user, password req):
#: Using the rpnet API, check if valid premium account
res = self.load("https://premium.rpnet.biz/client_api.php",
- get={'username': user, 'password': self.get_data(user)['password'],
+ get={'username': user, 'password': password,
'action': "showAccountInformation"})
self.log_debug("JSON data: %s" % res)