summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/LinksnappyCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/LinksnappyCom.py')
-rw-r--r--module/plugins/accounts/LinksnappyCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py
index 97e368285..34571d374 100644
--- a/module/plugins/accounts/LinksnappyCom.py
+++ b/module/plugins/accounts/LinksnappyCom.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from hashlib import md5
+import hashlib
from module.plugins.Account import Account
from module.common.json_layer import json_loads
@@ -18,7 +18,7 @@ class LinksnappyCom(Account):
def loadAccountInfo(self, user, req):
data = self.getAccountData(user)
r = req.load('http://gen.linksnappy.com/lseAPI.php',
- get={'act': 'USERDETAILS', 'username': user, 'password': md5(data['password']).hexdigest()})
+ get={'act': 'USERDETAILS', 'username': user, 'password': hashlib.md5(data['password']).hexdigest()})
self.logDebug("JSON data: " + r)
@@ -50,7 +50,7 @@ class LinksnappyCom(Account):
r = req.load("http://gen.linksnappy.com/lseAPI.php",
get={'act' : 'USERDETAILS',
'username': user,
- 'password': md5(data['password']).hexdigest()},
+ 'password': hashlib.md5(data['password']).hexdigest()},
decode=True)
if 'Invalid Account Details' in r: