提交 341b6d54 编写于 作者: V Valeriy Sizov

Merge pull request #586 from patthoyts/pt/ldap-auth-fix

Ensure LDAP provided email is always compared case-insensitively.
......@@ -80,7 +80,7 @@ class User < ActiveRecord::Base
def self.find_for_ldap_auth(omniauth_info)
name = omniauth_info.name
email = omniauth_info.email
email = omniauth_info.email.downcase
if @user = User.find_by_email(email)
@user
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册