Properly encode before md5. fix #580

This commit is contained in:
Ruud
2012-07-14 23:23:45 +02:00
parent 7c687d4d6b
commit b3e709c6c5
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class Core(Plugin):
def md5Password(self, value):
return md5(value) if value else ''
return md5(value.encode(Env.get('encoding'))) if value else ''
def checkApikey(self, value):
return value if value and len(value) > 3 else uuid4().hex