summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/HotfileCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/HotfileCom.py')
-rw-r--r--module/plugins/accounts/HotfileCom.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py
index f623e56f1..52bff87fe 100644
--- a/module/plugins/accounts/HotfileCom.py
+++ b/module/plugins/accounts/HotfileCom.py
@@ -75,4 +75,7 @@ class HotfileCom(Account):
cj = self.getAccountCookies(user)
cj.setCookie("hotfile.com", "lang", "en")
req.load("http://hotfile.com/", cookies=True)
- req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]}, cookies=True)
+ page = req.load("http://hotfile.com/login.php", post={"returnto": "/", "user": user, "pass": data["password"]}, cookies=True)
+
+ if "Bad username/password" in page:
+ self.wrongPassword() \ No newline at end of file