summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/NoPremiumPl.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 04:59:27 +0200
commit8f17f875f6e28f73ddb10da59c6464bd04922222 (patch)
tree29631cd1f81a40283c71dfdd005b9d24370d5d7f /module/plugins/accounts/NoPremiumPl.py
parentFix typo (diff)
downloadpyload-8f17f875f6e28f73ddb10da59c6464bd04922222.tar.xz
Account rewritten
Diffstat (limited to 'module/plugins/accounts/NoPremiumPl.py')
-rw-r--r--module/plugins/accounts/NoPremiumPl.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/NoPremiumPl.py b/module/plugins/accounts/NoPremiumPl.py
index 088d9df69..dfd10c6f7 100644
--- a/module/plugins/accounts/NoPremiumPl.py
+++ b/module/plugins/accounts/NoPremiumPl.py
@@ -32,7 +32,7 @@ class NoPremiumPl(Account):
_pwd = None
- def load_account_info(self, name, req):
+ def parse_info(self, name, req):
self._req = req
try:
result = json_loads(self.run_auth_query())
@@ -54,18 +54,18 @@ class NoPremiumPl(Account):
'premium' : premium }
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
self._usr = user
- self._pwd = hashlib.sha1(hashlib.md5(data['password']).hexdigest()).hexdigest()
+ self._pwd = hashlib.sha1(hashlib.md5(password).hexdigest()).hexdigest()
self._req = req
try:
response = json_loads(self.run_auth_query())
except Exception:
- self.wrong_password()
+ self.fail()
if "errno" in response.keys():
- self.wrong_password()
+ self.fail()
data['usr'] = self._usr
data['pwd'] = self._pwd