From d2e2b127651a5a44b56337eb6d9ca246c97a208a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 17 Jul 2015 03:03:26 +0200 Subject: Spare fixes and code cosmetics --- module/plugins/accounts/WebshareCz.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'module/plugins/accounts/WebshareCz.py') diff --git a/module/plugins/accounts/WebshareCz.py b/module/plugins/accounts/WebshareCz.py index c8711838f..9f392bdb0 100644 --- a/module/plugins/accounts/WebshareCz.py +++ b/module/plugins/accounts/WebshareCz.py @@ -42,8 +42,9 @@ class WebshareCz(Account): def login(self, user, data, req): salt = self.load("https://webshare.cz/api/salt/", - post={'username_or_email': user, - 'wst' : ""}, req=req) + post={'username_or_email': user, + 'wst' : ""}, + req=req) if "OK" not in salt: self.wrong_password() @@ -53,11 +54,12 @@ class WebshareCz(Account): digest = hashlib.md5(user + ":Webshare:" + password).hexdigest() login = self.load("https://webshare.cz/api/login/", - post={'digest' : digest, - 'keep_logged_in' : 1, - 'password' : password, - 'username_or_email': user, - 'wst' : ""}, req=req) + post={'digest' : digest, + 'keep_logged_in' : 1, + 'password' : password, + 'username_or_email': user, + 'wst' : ""}, + req=req) if "OK" not in login: self.wrong_password() -- cgit v1.2.3