summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RehostTo.py
diff options
context:
space:
mode:
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()