summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--postgresqleu/util/middleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/util/middleware.py b/postgresqleu/util/middleware.py
index 7cdcd3b6..b77c8494 100644
--- a/postgresqleu/util/middleware.py
+++ b/postgresqleu/util/middleware.py
@@ -61,7 +61,7 @@ class GlobalLoginMiddleware(object):
if len(auth) != 2:
return http.HttpResponseForbidden("Invalid authentication")
if auth[0].lower() == "basic":
- user, pwd = base64.b64decode(auth[1]).split(':')
+ user, pwd = base64.b64decode(auth[1]).decode('utf8').split(':')
if user == settings.GLOBAL_LOGIN_USER and pwd == settings.GLOBAL_LOGIN_PASSWORD:
return None
# Else we fall through and request a login prompt