Commit 15fa1bbe authored by Recteur LP's avatar Recteur LP
Browse files

fix utf8

parent ff0614c6
......@@ -69,10 +69,10 @@ class ldapauth2():
"name": name,
"isauth": True,
"isadmin": isadmin,
"division": unicode(attrs.get('division', [ 'Guest' ])[0], "utf-8"),
"displayName": attrs.get('displayName', [ 'Guest' ])[0],
"division": attrs.get('division', [ 'Guest' ])[0].decode("utf-8"),
"displayName": attrs.get('displayName', [ 'Guest' ])[0].decode("utf-8"),
"mobile": attrs.get('otherMobile', [ '' ])[0],
"company": attrs.get('company', [ '' ])[0],
"company": attrs.get('company', [ '' ])[0].decode("utf-8"),
"mail": mail,
"img_url": gravatar_url
}
\ No newline at end of file
Markdown is supported
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