diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-01-24 15:13:41 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-01-24 15:17:21 -0500 |
commit | c4da893b2e28dbd2a04f8c6f61c52936119b1148 (patch) | |
tree | 43eafffdea7529121c1aac229587bcd21c144037 /fbconnect | |
parent | 4e7d6e104d95115b091e6bbf29148b5b1c96aa7e (diff) | |
download | askbot-c4da893b2e28dbd2a04f8c6f61c52936119b1148.tar.gz askbot-c4da893b2e28dbd2a04f8c6f61c52936119b1148.tar.bz2 askbot-c4da893b2e28dbd2a04f8c6f61c52936119b1148.zip |
fixed small error in html and style of signin view
Diffstat (limited to 'fbconnect')
-rwxr-xr-x | fbconnect/fb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fbconnect/fb.py b/fbconnect/fb.py index a1c3e424..370e160b 100755 --- a/fbconnect/fb.py +++ b/fbconnect/fb.py @@ -9,7 +9,7 @@ except: from pjson import fread as load_json from models import FBAssociation -import md5 +import hashlib import logging REST_SERVER = 'http://api.facebook.com/restserver.php' @@ -21,7 +21,7 @@ def generate_sig(values): keys.append(key) signature = ''.join(['%s=%s' % (key, values[key]) for key in keys]) + settings.FB_SECRET - return md5.new(signature).hexdigest() + return hashlib.md5(signature).hexdigest() def check_cookies_signature(cookies): API_KEY = settings.FB_API_KEY |