diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:11:34 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:11:34 -0400 |
commit | bb801f2bbd9f26bebca846b71e8947a1951f86a5 (patch) | |
tree | cd4f7417cdbabc6834aeb45f73f09208a738ac2d /django_authopenid/util.py | |
parent | d3b7efc1eba6f38fba8d5110c7155f477d1459e6 (diff) | |
download | askbot-bb801f2bbd9f26bebca846b71e8947a1951f86a5.tar.gz askbot-bb801f2bbd9f26bebca846b71e8947a1951f86a5.tar.bz2 askbot-bb801f2bbd9f26bebca846b71e8947a1951f86a5.zip |
english translation
Diffstat (limited to 'django_authopenid/util.py')
-rw-r--r-- | django_authopenid/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django_authopenid/util.py b/django_authopenid/util.py index 54c1246b..841a81c7 100644 --- a/django_authopenid/util.py +++ b/django_authopenid/util.py @@ -15,7 +15,7 @@ try: except: from yadis import xri -import time, base64, hashlib, operator +import time, base64, md5, operator import urllib from models import Association, Nonce @@ -128,7 +128,7 @@ class DjangoOpenIDStore(OpenIDStore): def getAuthKey(self): # Use first AUTH_KEY_LEN characters of md5 hash of SECRET_KEY - return hashlib.md5(settings.SECRET_KEY).hexdigest()[:self.AUTH_KEY_LEN] + return md5.new(settings.SECRET_KEY).hexdigest()[:self.AUTH_KEY_LEN] def isDumb(self): return False |