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] == user.email:
if res['mail'][0].decode("utf-8") == user.email:
for group in res['memberOf']:
group = group.decode("utf-8")
group = group.split(',')[0]
group = group.split('=')[1]
groups.append(group)
......
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