diff options
Diffstat (limited to 'module/plugins/accounts/SmoozedCom.py')
-rw-r--r-- | module/plugins/accounts/SmoozedCom.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/accounts/SmoozedCom.py b/module/plugins/accounts/SmoozedCom.py index 78642dca1..a6b9ba3be 100644 --- a/module/plugins/accounts/SmoozedCom.py +++ b/module/plugins/accounts/SmoozedCom.py @@ -19,14 +19,14 @@ except ImportError: def hexread(self, octets): return b2a_hex(pbkdf2(self.passphrase, self.salt, self.iterations, octets)) -from module.plugins.internal.utils import json +from module.plugins.internal.misc import json from module.plugins.internal.MultiAccount import MultiAccount class SmoozedCom(MultiAccount): __name__ = "SmoozedCom" __type__ = "account" - __version__ = "0.10" + __version__ = "0.11" __status__ = "testing" __config__ = [("mh_mode" , "all;listed;unlisted", "Filter hosters to use" , "all"), @@ -83,6 +83,7 @@ class SmoozedCom(MultiAccount): salt = hashlib.sha256(password).hexdigest() encrypted = PBKDF2(password, salt, iterations=1000).hexread(32) - return json.loads(self.load("http://www2.smoozed.com/api/login", - get={'auth': user, - 'password': encrypted})) + html = self.load("http://www2.smoozed.com/api/login", + get={'auth': user, + 'password': encrypted}) + return json.loads(html) |