Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Commit

Permalink
Fix base64 decoding of OpenID logo for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Aug 9, 2016
1 parent 00eeed2 commit 0d21d5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion djangopeople/django_openidconsumer/views.py
@@ -1,3 +1,4 @@
import base64
import re
import urllib

Expand Down Expand Up @@ -163,7 +164,7 @@ def signout(request):

def logo(request):
return HttpResponse(
OPENID_LOGO_BASE_64.decode('base64'), content_type='image/gif'
base64.b64decode(OPENID_LOGO_BASE_64), content_type='image/gif'
)

# Logo from http://openid.net/login-bg.gif
Expand Down

0 comments on commit 0d21d5a

Please sign in to comment.