Commit b2da5262 authored by Pablo Panero's avatar Pablo Panero
Browse files

Auth: fix cern OAuth patch for python3

parent 3612473b
......@@ -279,8 +279,9 @@ def get_user_resources_ldap(user):
res = res[0][1]
groups = []
if res['mail'][0] ==
if res['mail'][0].decode("utf-8") ==
for group in res['memberOf']:
group = group.decode("utf-8")
group = group.split(',')[0]
group = group.split('=')[1]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment