summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/SmoozedCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/SmoozedCom.py')
-rw-r--r--module/plugins/accounts/SmoozedCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/accounts/SmoozedCom.py b/module/plugins/accounts/SmoozedCom.py
index f3f33eff6..2201e4294 100644
--- a/module/plugins/accounts/SmoozedCom.py
+++ b/module/plugins/accounts/SmoozedCom.py
@@ -34,7 +34,7 @@ class SmoozedCom(Account):
__authors__ = [("", "")]
- def load_account_info(self, user, req):
+ def parse_info(self, user, password, data, req):
status = self.get_account_status(user, req)
self.log_debug(status)
@@ -61,17 +61,17 @@ class SmoozedCom(Account):
return info
- def login(self, user, data, req):
+ def login(self, user, password, data, req):
#: Get user data from premiumize.me
status = self.get_account_status(user, req)
#: Check if user and password are valid
if status['state'] != 'ok':
- self.wrong_password()
+ self.fail()
def get_account_status(self, user, req):
- password = self.get_account_data(user)['password']
+ password = self.get_data(user)['password']
salt = hashlib.sha256(password).hexdigest()
encrypted = PBKDF2(password, salt, iterations=1000).hexread(32)