Skip to content
代码片段 群组 项目
提交 e6fbf79b 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

Merge branch 'ldap_nickname' into 'master'

Remove omniauth-ldap nickname bug workaround
No related branches found
No related tags found
无相关合并请求
......@@ -2,6 +2,7 @@ v 6.8.0
- Ability to at mention users that are participating in issue and merge req. discussion
- Enabled GZip Compression for assets in example Nginx, make sure that Nginx is compiled with --with-http_gzip_static_module flag (this is default in Ubuntu)
- Make user search case-insensitive (Christopher Arnold)
- Remove omniauth-ldap nickname bug workaround
v 6.7.2
- Fix upgrader script
......
......@@ -86,11 +86,7 @@ def find_by_uid(uid)
end
def username
(auth.info.nickname || samaccountname).to_s.force_encoding("utf-8")
end
def samaccountname
(auth.extra[:raw_info][:samaccountname] || []).first
auth.info.nickname.to_s.force_encoding("utf-8")
end
def provider
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册