From 6891502d1eb47f3db824ee25a8d978284f3e75e7 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 18 Oct 2015 17:12:53 +0200 Subject: Multi-hoster accounts now extend MultiAccount class --- module/plugins/accounts/SmoozedCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/accounts/SmoozedCom.py') diff --git a/module/plugins/accounts/SmoozedCom.py b/module/plugins/accounts/SmoozedCom.py index 1c3da5269..159b2784d 100644 --- a/module/plugins/accounts/SmoozedCom.py +++ b/module/plugins/accounts/SmoozedCom.py @@ -19,11 +19,11 @@ except ImportError: def hexread(self, octets): return b2a_hex(pbkdf2(self.passphrase, self.salt, self.iterations, octets)) -from module.common.json_layer import json_loads -from module.plugins.internal.Account import Account +from module.plugins.internal.utils import json +from module.plugins.internal.MultiAccount import MultiAccount -class SmoozedCom(Account): +class SmoozedCom(MultiAccount): __name__ = "SmoozedCom" __type__ = "account" __version__ = "0.09" @@ -83,6 +83,6 @@ class SmoozedCom(Account): salt = hashlib.sha256(password).hexdigest() encrypted = PBKDF2(password, salt, iterations=1000).hexread(32) - return json_loads(self.load("http://www2.smoozed.com/api/login", + return json.loads(self.load("http://www2.smoozed.com/api/login", get={'auth': user, 'password': encrypted})) -- cgit v1.2.3