From c4da893b2e28dbd2a04f8c6f61c52936119b1148 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sun, 24 Jan 2010 15:13:41 -0500 Subject: fixed small error in html and style of signin view --- fbconnect/fb.py | 4 ++-- templates/authopenid/signin.html | 20 ++++++++++---------- templates/base.html | 2 +- templates/content/jquery-openid/openid.css | 6 ++++++ 4 files changed, 19 insertions(+), 13 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 diff --git a/templates/authopenid/signin.html b/templates/authopenid/signin.html index 3d20d408..51b8aa7f 100755 --- a/templates/authopenid/signin.html +++ b/templates/authopenid/signin.html @@ -63,7 +63,15 @@ iconhttp://openid.aol.com/username -
  • + + -