From 0e6a798342985f1e4074896e45363c3f5acceacc Mon Sep 17 00:00:00 2001 From: Jeix Date: Thu, 25 Nov 2010 14:33:15 +0100 Subject: depositfiles, fileserve free fixes --- module/plugins/accounts/FileserveCom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module/plugins/accounts') diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py index 793d240cc..7754de253 100644 --- a/module/plugins/accounts/FileserveCom.py +++ b/module/plugins/accounts/FileserveCom.py @@ -44,8 +44,12 @@ class FileserveCom(Account): def login(self, user, data, req): - req.load("http://fileserve.com/login.php", + html = req.load("http://fileserve.com/login.php", post={"loginUserName": user, "loginUserPassword": data["password"], "autoLogin": "on", "loginFormSubmit": "Login"}, cookies=True) + + if r'Please Enter a valid user name.' in html: + self.wrongPassword() + req.load("http://fileserve.com/dashboard.php", cookies=True) -- cgit v1.2.3