summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RehostTo.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/RehostTo.py
parentAccount rewritten (diff)
downloadpyload-a95c217627a1cb651b24e69f20640df40797aff9.tar.xz
Account rewritten (2)
Diffstat (limited to 'module/plugins/accounts/RehostTo.py')
-rw-r--r--module/plugins/accounts/RehostTo.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/accounts/RehostTo.py b/module/plugins/accounts/RehostTo.py
index 1bfd79088..36e5e33eb 100644
--- a/module/plugins/accounts/RehostTo.py
+++ b/module/plugins/accounts/RehostTo.py
@@ -21,8 +21,9 @@ class RehostTo(Account):
session = ""
html = self.load("https://rehost.to/api.php",
- get={'cmd' : "login", 'user': user,
- 'pass': self.get_data(user)['password']})
+ get={'cmd' : "login",
+ 'user': user,
+ 'pass': password})
try:
session = html.split(",")[1].split("=")[1]
@@ -54,4 +55,4 @@ class RehostTo(Account):
if "ERROR" in html:
self.log_debug(html)
- self.fail()
+ self.login_fail()